var glob = new GlobBuilder()
.PathSeparator()
.Literal("foo")
.AnyCharacter()
.PathSeparator(PathSeparatorKind.BackwardSlash)
.Wildcard()
.OneOf('a', 'b', 'c')
.NumberNotInRange('1', '3')
.Literal(".txt")
.ToGlob();
var isMatch = glob.IsMatch(@"/fooa\\barrra4.txt"); // returns true.
isMatch is false. The at symbol causes the backslashes to be escaped automatically, so there are two backslashes. Either removing the at symbol or removing one of the backslashes should fix this.
isMatch
is false. The at symbol causes the backslashes to be escaped automatically, so there are two backslashes. Either removing the at symbol or removing one of the backslashes should fix this.