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

Match after end of routes #117

Open
shoehn opened this issue Oct 25, 2018 · 1 comment
Open

Match after end of routes #117

shoehn opened this issue Oct 25, 2018 · 1 comment

Comments

@shoehn
Copy link

shoehn commented Oct 25, 2018

Hi,
I understand that r3 uses a prefix tree to implement the matching of the routes. When I add two routes "/test" and "/test2", I can also match "/test3". That is because "/test" is a prefix of "/test3", correct?

Is that intended behaviour? How can I recognize that in my implementation of the routing? Or is it just that we don't care as long as our routing starts correctly what follows after that correct route?

Thanks for the great library!

Sebastian

@c9s
Copy link
Owner

c9s commented Oct 26, 2018 via email

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