We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"urlpattern-polyfill": "^10.0.0"
import { URLPattern } from 'urlpattern-polyfill' let p = new URLPattern('https://example.com') p.exec('https://example.com/')
I expect the pattern to:
groups
The pattern does match, but it incorrectly reports the trailing slash "/" as a group match for the pathname segment:
"/"
pathname
{ inputs: [ 'https://example.com/' ], protocol: { input: 'https', groups: {} }, username: { input: '', groups: { '0': '' } }, password: { input: '', groups: { '0': '' } }, hostname: { input: 'example.com', groups: {} }, port: { input: '', groups: {} }, + pathname: { input: '/', groups: { '0': '/' } }, search: { input: '', groups: { '0': '' } }, hash: { input: '', groups: { '0': '' } } }
Since I haven't declared any matching groups there (i.e. wildcards or parameters), I don't expect to get any match results.
This is reproducible on v10, not reproducible on v9.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce
Expected result
I expect the pattern to:
groups
through the entire match result.Actual result
The pattern does match, but it incorrectly reports the trailing slash
"/"
as a group match for thepathname
segment:{ inputs: [ 'https://example.com/' ], protocol: { input: 'https', groups: {} }, username: { input: '', groups: { '0': '' } }, password: { input: '', groups: { '0': '' } }, hostname: { input: 'example.com', groups: {} }, port: { input: '', groups: {} }, + pathname: { input: '/', groups: { '0': '/' } }, search: { input: '', groups: { '0': '' } }, hash: { input: '', groups: { '0': '' } } }
Since I haven't declared any matching groups there (i.e. wildcards or parameters), I don't expect to get any match results.
Additional info
This is reproducible on v10, not reproducible on v9.
The text was updated successfully, but these errors were encountered: