Skip to content

Conversation

@AlskiOnTheWeb
Copy link

@AlskiOnTheWeb AlskiOnTheWeb commented Nov 23, 2016

This pull request will fix the case where a node in the route tree has several entries. Ones with regexps are weighted to be checked first. The case it fixes are when there are routes like:

/a/:b

and

/a/:b:.*\.json

The current behavior is that the second case will never be checked because the first always matches. This pull will ensure that the "with json extension" will be checked first.

@AlskiOnTheWeb
Copy link
Author

I've added one more feature that we use. In the case that a path parameter uses a pattern that has a capturing group, that captured group will be returned as the path value when appropriate.

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

Successfully merging this pull request may close these issues.

1 participant