Skip to content
New issue

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

Doesn't look like custom parameter prefixes are supported #1059

Open
steinybot opened this issue Feb 2, 2024 · 1 comment
Open

Doesn't look like custom parameter prefixes are supported #1059

steinybot opened this issue Feb 2, 2024 · 1 comment

Comments

@steinybot
Copy link

I was trying to create a custom parameter prefix as documented in https://github.com/pillarjs/path-to-regexp?tab=readme-ov-file#custom-prefix-and-suffix but it doesn't seem to work.

It would be nice for doing foo{/:path}? which would match foo and foo/bar but not foobar and the parameter path would not contain the leading slash.

@jquense
Copy link
Member

jquense commented Feb 7, 2024

yeah this like most react libs uses a really old version of path-to-regexp, b/c they removed a feature that is necessary for this all to work (tho i'm forgetting what at the moment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants