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
/
See the below example:
const url = "http://localhost/coffee/2/" const path = "/coffee/:id" const pattern = new URLPattern({ path }) pattern.exec(url) // null
I believe it should match in this case, and could be a huge downfall for the usabillity of this 'new' API
Though in some cases, i think it does match when the url ends with /, so i think it might be quite flaky?
The text was updated successfully, but these errors were encountered:
This is intentional spec behaviour: whatwg/urlpattern#14.
If you want to match trailing slashes, add a {/}? to the end of your pattern.
{/}?
Sorry, something went wrong.
Opened an issue on MDN to clarify this in docs: mdn/content#9327
No branches or pull requests
See the below example:
I believe it should match in this case, and could be a huge downfall for the usabillity of this 'new' API
Though in some cases, i think it does match when the url ends with
/
, so i think it might be quite flaky?The text was updated successfully, but these errors were encountered: