mirror of
https://gitea.invidious.io/iv-org/shard-radix.git
synced 2024-08-15 00:43:21 +00:00
Catch all will continue checking key chars when path chars differ
This commit is contained in:
parent
905bd9e14b
commit
1e410910e4
2 changed files with 10 additions and 0 deletions
|
@ -442,6 +442,14 @@ module Radix
|
|||
result.params["trailing"].empty?.should be_true
|
||||
end
|
||||
|
||||
it "returns optional catch all globbing" do
|
||||
tree = Tree(Symbol).new
|
||||
tree.add "/members/*trailing", :members_catch_all
|
||||
|
||||
result = tree.find("/members2")
|
||||
result.found?.should be_false
|
||||
end
|
||||
|
||||
it "does not find when catch all is not full match" do
|
||||
tree = Tree(Symbol).new
|
||||
tree.add "/", :root
|
||||
|
|
|
@ -324,6 +324,8 @@ module Radix
|
|||
return
|
||||
end
|
||||
end
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
# key still contains characters to walk
|
||||
|
|
Loading…
Reference in a new issue