Skip to content

Commit a40e3ca

Browse files
committed
fix: wildcard node should be the last child.
1 parent c3d1092 commit a40e3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ walk: // Outer loop for walking the tree
833833
return nil
834834
}
835835

836-
n = n.children[0]
836+
n = n.children[len(n.children)-1]
837837
switch n.nType {
838838
case param:
839839
// Find param end (either '/' or path end)

0 commit comments

Comments
 (0)