You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Glob.translate negative-lookaheads path separators regex ranges that ecompass path seperator. For ranges which include path separator literals, the range is escaped.
1
+
.. versionchanged:: next
2
+
:func:`glob.translate` now correctly handles ranges implicitly containing path
3
+
separators (for instance, ``[%-0]`` contains ``/``) by adding either a negative
4
+
lookahead (``(?!/)``) or by not including the path separator (``^/``). In addition,
5
+
ranges including path separator literals are now correctly escaped, as specified by
6
+
POSIX specifications.
7
+
8
+
.. versionchanged:: next
9
+
:func:`fnmatch.translate` does not treat path separator characters as having any
10
+
special meaning at all, so it still matches ranges implicitly containing path
11
+
separators (for instance, ``[%-0]`` contains ``/``) and ranges explicitly
0 commit comments