-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels