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
It's probably on me, but I was unable to create a pattern for url's like this:
<url>/present/tag1/tag2/tag3/[...tagN]
the <url>/present is a const, the tags are coming at the end of it.
<url>/present
This is what Ive been trying with:
new UrlPattern(/^\/present\/(.*)$/);
but then result is:
["1-lorem/5-ipsum"]
which is an array, with a single item.
Now i could split it by / but then the usage of url-pattern becomes quite unnecessary, so I'd rather solve it using the corerct way.
/
url-pattern
What i am aiming for is something like this:
["1-lorem", "2-ipsum"]
Any help is appreciated.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It's probably on me, but I was unable to create a pattern for url's like this:
the
<url>/present
is a const, the tags are coming at the end of it.This is what Ive been trying with:
but then result is:
which is an array, with a single item.
Now i could split it by
/
but then the usage ofurl-pattern
becomes quite unnecessary, so I'd rather solve it using the corerct way.What i am aiming for is something like this:
Any help is appreciated.
The text was updated successfully, but these errors were encountered: