Releases: bmatcuk/doublestar
Fixes Patterns that Start With Alternatives
Small bug fix release.
Support for path separators inside {alts}
This release adds support for {alt}
groups that include path separators, for example: {/tmp/test/example1,/tmp/test/example2}
. It also adds support for nested alt groups. This should close bug #25.
UNC Support
Support for UNC paths in Glob(). Thanks @WithoutPants!
Removes Automatic Multi-Separator Clean-up Code
v1.1.2 introduced some code that would automatically clean-up multiple separators in patterns and paths (ie, /path/to//something
would automatically get cleaned to /path/to/something
by treating the //
as /
). However, it has been brought to my attention that this is not always desirable and, so, it makes sense to remove it. If this is desirable behavior, you could always cleanup your patterns and paths before passing them to doublestar, but if I leave in this code and it is undesirable, you have no option to change the behavior.
Fix Directory Issues on Windows
Windows didn't like some of the stuff in the test
directory, so I've removed that from the repo and generate it on-the-fly when the tests run.
Fixed Some Corner Cases
Fixed a few corner cases where doublestar did not return the same result as golang's built-in Match functions. Since doublestar is meant to be a drop-in replacement, it should produce the same results.
Thanks @storyicon for submitting the bug report!
Fixed Glob / Support on Windows
Oops! Thanks to @fernferret for catching my mistake!
Allow / with Glob on Windows
filepath.Glob
will accept patterns with /
characters on Windows, so, doublestar should, too. Hopefully this won't break anything for anyone!
Added Support for Go Modules
Thanks to @dgodd for the PR =)
Updated tests for Windows and absolute paths
v1.0.9 v1.0.9