Skip to content

Commit

Permalink
fix: matching rules of uri
Browse files Browse the repository at this point in the history
  • Loading branch information
memset0 committed Jul 22, 2024
1 parent 2228ea0 commit 07d8a48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/types/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export default class Feature {
--pathParts.length;
}

if (pathParts.length != matchParts.length) {
if (pathParts.length < matchParts.length) {
return false
}
if (pathParts.length > matchParts.length && matchParts[matchParts.length - 1] !== '*') {
return false
}

Expand Down

0 comments on commit 07d8a48

Please sign in to comment.