-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Bug in parsing path with dots #36
Comments
Hi @TroyKomodo, I added the test cases, use The So we can use |
Oh I see I did not expect that. Is there any reason the : splitter doesn't match .? |
PR welcome. Sorry, it's too long, I need to read codes. |
No it's not a problem, I was just asking if you knew why what the matcher was doing when it matched. I am indifferent on the syntax if you think it's a feature worth adding I would be happy to PR for it. |
I think that case should be matched. Your expectation was right. |
This commit adds a feature which allows the normal matcher paths like `/:name.js` or `/:name.xyz.js` Previously this would have found no routes on paths like `/frame.js` or `/frame.xyz.js` Now the matcher is able to find the paths correctly. fixes: viz-rs#36
This commit adds a feature which allows the normal matcher paths like `/:file.gz` or `/:lib.js.gz` Previously this would have found no routes on paths like `/node.js.gz` Now `/:file.gz` matches `/node.js.gz` where "name" => "node.js" And `/:lib.js.gz` matches `/node.js.gz` where "lib" => "node" Which to me seems like the correct result in these cases. fixes: viz-rs#36
This commit adds a feature which allows the normal matcher to match paths like `/:file.gz` or `/:lib.js.gz` Previously this would have found no routes on paths like `/node.js.gz` Now `/:file.gz` matches `/node.js.gz` where "name" => "node.js" And `/:lib.js.gz` matches `/node.js.gz` where "lib" => "node" Which to me seems like the correct result in these cases. fixes: viz-rs#36
* feat: normal match repeated pattern This commit adds a feature which allows the normal matcher to match paths like `/:file.gz` or `/:lib.js.gz` Previously this would have found no routes on paths like `/node.js.gz` Now `/:file.gz` matches `/node.js.gz` where "name" => "node.js" And `/:lib.js.gz` matches `/node.js.gz` where "lib" => "node" Which to me seems like the correct result in these cases. fixes: #36 * chore: remove iter copied * fix: revert iter enumerate * chore: remove unless comments * chore: check keeprunning first --------- Co-authored-by: Fangdun Tsai <fundon@pindash.io>
I would expect both tests to pass, however only the
test_dots_no_ext
passes.The text was updated successfully, but these errors were encountered: