Closed PazerOP closed 7 years ago
What version are you using?
Latest, 1.6.9.
That's odd. Are you sure you are calling Match
and not IsMatch()
?
There used to be a Match
method but I removed it recently: https://github.com/dazinator/DotNet.Glob/blob/develop/src/DotNet.Glob/Glob.cs#L40
Ah I see. I removed it as of the latest pre-release (alpha) package. But it is there in the last stable release 1.6.9 as you have seen. Can you use IsMatch()
instead?
For background: https://github.com/dazinator/DotNet.Glob/issues/28
I see. Thank you.
Calling
Glob.Match()
on certain globs/input strings will produce anInvalidOperationException
with the message "Index was outside the bounds of the array". Repro for v1.6.9: