dazinator / DotNet.Glob

A fast globbing library for .NET / .NETStandard applications. Outperforms Regex.
MIT License
363 stars 27 forks source link

Token parsing and AllowInvalidPathCharacters = true #47

Closed dazinator closed 6 years ago

dazinator commented 6 years ago

Discovered whilst investigating #46

When setting the following:


options.Parsing.AllowInvalidPathCharacters = true;

and tokenising **/foo/

It causes the tokeniser to parse the literal foo as foo/. This causes a literal match on the path seperator which is problematic if mixed slashes are used.