Skip to content

Commit 5fd73da

Browse files
committed
Merge branch 'ab/wildmatch-glob-slash-test'
A new test to show the interaction between the pattern [^a-z] (which matches '/') and a slash in a path has been added. The pattern should not match the slash with "pathmatch", but should with "wildmatch". * ab/wildmatch-glob-slash-test: wildmatch test: cover a blind spot in "/" matching
2 parents 2f4af84 + d8604c7 commit 5fd73da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/t3070-wildmatch.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ match 1 0 'foo/bar' 'foo/**/bar'
8282
match 1 0 'foo/bar' 'foo/**/**/bar'
8383
match 0 0 'foo/bar' 'foo?bar'
8484
match 0 0 'foo/bar' 'foo[/]bar'
85+
match 0 0 'foo/bar' 'foo[^a-z]bar'
8586
match 0 0 'foo/bar' 'f[^eiu][^eiu][^eiu][^eiu][^eiu]r'
8687
match 1 1 'foo-bar' 'f[^eiu][^eiu][^eiu][^eiu][^eiu]r'
8788
match 1 0 'foo' '**/foo'
@@ -225,6 +226,7 @@ pathmatch 0 foo/bba/arr 'foo/*z'
225226
pathmatch 0 foo/bba/arr 'foo/**z'
226227
pathmatch 1 foo/bar 'foo?bar'
227228
pathmatch 1 foo/bar 'foo[/]bar'
229+
pathmatch 1 foo/bar 'foo[^a-z]bar'
228230
pathmatch 0 foo '*/*/*'
229231
pathmatch 0 foo/bar '*/*/*'
230232
pathmatch 1 foo/bba/arr '*/*/*'

0 commit comments

Comments
 (0)