Skip to content

Commit 07d8a48

Browse files
committed
fix: matching rules of uri
1 parent 2228ea0 commit 07d8a48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/types/feature.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ export default class Feature {
5353
--pathParts.length;
5454
}
5555

56-
if (pathParts.length != matchParts.length) {
56+
if (pathParts.length < matchParts.length) {
57+
return false
58+
}
59+
if (pathParts.length > matchParts.length && matchParts[matchParts.length - 1] !== '*') {
5760
return false
5861
}
5962

0 commit comments

Comments
 (0)