Merge pull request #1745 from Zillode/fix-1678
Added test for combining case insensitive and negated patterns (fixes #1678)
This commit is contained in:
commit
3cbddfe545
|
@ -55,6 +55,7 @@ var testcases = []testcase{
|
||||||
{"foo.txt", "foo.TXT", CaseFold, true},
|
{"foo.txt", "foo.TXT", CaseFold, true},
|
||||||
{"(?i)foo.txt", "foo.TXT", 0, true},
|
{"(?i)foo.txt", "foo.TXT", 0, true},
|
||||||
{"(?i)**foo.txt", "/dev/tmp/foo.TXT", 0, true},
|
{"(?i)**foo.txt", "/dev/tmp/foo.TXT", 0, true},
|
||||||
|
{"(?i)!**foo.txt", "/dev/tmp/foo.TXT", 0, false},
|
||||||
|
|
||||||
// These characters are literals in glob, but not in regexp.
|
// These characters are literals in glob, but not in regexp.
|
||||||
{"hey$hello", "hey$hello", 0, true},
|
{"hey$hello", "hey$hello", 0, true},
|
||||||
|
|
Loading…
Reference in New Issue