c9s / r3

libr3 is a high-performance path dispatching library. It compiles your route paths into a prefix tree (trie). By using the constructed prefix trie in the start-up time, you may dispatch your routes with efficiency
http://c9s.github.com/r3/bench.html
MIT License
813 stars 83 forks source link

bugfix: the end matching length is 0. #128

Closed membphis closed 4 years ago

membphis commented 4 years ago

current commits mainly for study ^_^.

membphis commented 4 years ago

here is the test case: https://github.com/c9s/r3/pull/128/files#diff-54bbbdaaec8855f2ba266946c518709eR15

@c9s Do you have any suggestions on how to fix this bug?

membphis commented 4 years ago

@c9s I have rebased this PR to master branch, please take a look when you have time.