found icon indicating copy to clipboard operation
found copied to clipboard

Doesn't look like custom parameter prefixes are supported

Open steinybot opened this issue 1 year ago • 1 comments

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.

steinybot avatar Feb 02 '24 00:02 steinybot

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)

jquense avatar Feb 07 '24 16:02 jquense