Closed bmode closed 4 years ago
This is fixed in https://github.com/dazinator/DotNet.Glob/pull/66 that is waiting to be merged.
This PR includes tests, is there any reason to not merge it?
@olivier-spinelli sorry for some reason I stopped getting github notifications and missed this activity. I'll look into this and if all in order I'll get it merged this week. Thanks for opening an issue and submitting a PR.
I've merged the PR into develop - which fixes this issue on the latest develop release which is 3.1.0 alpha 9. Thank you very much @olivier-spinelli for the Pr (and the valuable extra test case!)
For those that don't like using "prerelease" nuget packages, I'll create a version 3.0.6 containing this fix on the stable nuget channel sometime this week.
Thanks! But please note that this PR has been created by @antoine-r (a friend of mine to whom I talked about this issue): he is the one to thank for this good job!
Haha @olivier-spinelli @antoine-r apologies for the mix up.It's been a long day for me already and it's only 9.10am :-)
Thank you @antoine-r !
@dazinator Any update on stable version 3.0.6 with this fix? I still see 3.0.5 as latest stable. Thanks!
Sorry, I should get to this within the next week. Alternatively use the latest pre release nuget package with the fix if that's an option for you!
Any news on getting this to stable? :)
Released as 3.0.8 to hit nuget shortly.
Using DotNet.Glob 3.0.5
Glob.Parse("foo**").IsMatch("foo")
throws
IndexOutOfRangeException: Index was outside the bounds of the array.
at DotNet.Globbing.Evaluation.WildcardDirectoryTokenEvaluator.IsMatch(String allChars, Int32 currentPosition, Int32& newPosition) at DotNet.Globbing.Evaluation.CompositeTokenEvaluator.IsMatch(String allChars, Int32 currentPosition, Int32& newPosition) at DotNet.Globbing.Glob.IsMatch(String subject) at