Handle multiple case insensitivity prefixes in ignores (fixes #2134)

This commit is contained in:
Jakob Borg
2015-08-08 11:53:14 +02:00
parent 161d5c8379
commit 0bfcafc5c6
2 changed files with 5 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ var testcases = []testcase{
{"foo.txt", "foo.TXT", CaseFold, true},
{"(?i)foo.txt", "foo.TXT", 0, true},
{"(?i)(?i)foo.txt", "foo.TXT", 0, true}, // repeated prefix should be fine
{"(?i)**foo.txt", "/dev/tmp/foo.TXT", 0, true},
{"(?i)!**foo.txt", "/dev/tmp/foo.TXT", 0, false},