Skip to content

Commit

Permalink
improve root inferring on non-trailing ** patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Sep 30, 2024
1 parent e9249d8 commit 97a0cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function normalizePattern(
for (let i = 0; i < Math.min(properties.commonPath.length, current.length); i++) {
const part = current[i];

if (part === '**') {
if (part === '**' && !current[i + 1]) {
newCommonPath.pop();
break;
}
Expand Down

0 comments on commit 97a0cc8

Please sign in to comment.