Skip to content

v4.10.6: do not allow escapes in character classes on Windows

Choose a tag to compare

@bmatcuk bmatcuk released this 22 Nov 14:56
· 1 commit to master since this release
v4.10.6
0aa92f1

There was some inconsistencies with the way doublestar allowed escapes inside character classes on systems where backslash (\) is the path separator (ex: Windows). Thanks @sarankumar1325 for the fix!

As part of this, I've made a small tweak to the code to allow a pattern such as []abc], which will match a literal ] in addition to a, b, and c. The closing bracket must be the first character in the class (or come immediately after ^ or ! if you want to negate the class).

What's Changed

New Contributors

Full Changelog: v4.10.5...v4.10.6