-
Notifications
You must be signed in to change notification settings - Fork 157
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
Matcher has problem matching text #438
Comments
I guess it's related to this: nickel.rs/src/router/into_matcher.rs Line 18 in 2d0e3d0
|
Ah no, it's the other line. nickel.rs/src/router/into_matcher.rs Line 52 in 2d0e3d0
My guess is that somewhere it's matching the whole regex and matching even with dangling char. So that would explain why |
nickel.rs/src/router/into_matcher.rs Line 55 in d7c3093
Ok found it. Well obviously you could make the regex use unicode aware strings so instead of matching |
You probably want a named capture that look like this: What I don't understand is why some char will prevent the whole regex from matching and some will match at least the first part of the regex. Because "/test/fun.js" should fail to match |
Here's a route I made
If you try to browse the url
/test/fun.js
get param will only matchfun
and notfun.js
. Also if you want to browse the url:/test/fun:time.js
It will not match anything and fail with NotFound.The text was updated successfully, but these errors were encountered: