Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed incorrect replacement of route elements beginning with same string #2991
Where a route contains a named element which starts with the name of a previous named element, the router is matching these incorrectly.
gives /widget/widgetsPart when it should give /widget/2
I have fixed this by simply ordering the params in reverse length order before checking for matches.