Closed luislavena closed 3 years ago
Properly skip nodes and continue lookup when the key to be looked up shares partial elements with others.
With the following scenario:
tree = Radix::Tree(Symbol).new tree.add "/*glob", :catch_all tree.add "/resources", :resources tree.add "/robots.txt", :robots
When attempt to lookup for /reviews, it will now correctly return :catch_all as found.
/reviews
:catch_all
Fixes #23
Properly skip nodes and continue lookup when the key to be looked up shares partial elements with others.
With the following scenario:
When attempt to lookup for
/reviews
, it will now correctly return:catch_all
as found.Fixes #23