Also handle ()| in glob patterns (fixes #1365)

This commit is contained in:
Jakob Borg
2015-02-20 10:11:01 +01:00
parent 8b66472949
commit 1e4b2133f6
2 changed files with 13 additions and 4 deletions

View File

@@ -68,6 +68,10 @@ var testcases = []testcase{
{"hey^hello", "hey^hello", 0, true},
{"hey{hello", "hey{hello", 0, true},
{"hey}hello", "hey}hello", 0, true},
{"hey(hello", "hey(hello", 0, true},
{"hey)hello", "hey)hello", 0, true},
{"hey|hello", "hey|hello", 0, true},
{"hey|hello", "hey|other", 0, false},
}
func TestMatch(t *testing.T) {