Skip to content

11.2

Latest

Choose a tag to compare

@facelessuser facelessuser released this 22 Oct 00:37
· 2 commits to main since this release

11.2

  • NEW: Drop support for Python 3.10.
  • FIX: Require bracex 3.2 for various bug fixes.
  • FIX: Filter filename iterables without evaluating their "truthiness", allowing collections such as numpy
    arrays (@Lushiyao5).
  • FIX: Improve performance when multiple * are used for file name matching. Performance is only improved in
    cases where variable length EXTGLOB patterns would not interfere with matching. Issue found by (@gistrec).
  • FIX: Apply one pattern limit to includes and exclusions when scanning with glob and iglob, and preserve
    unlimited expansion across multiple patterns with negative limits.
  • FIX: Use the documented default limit of 1000 patterns in WcMatch instead of 32.
  • FIX: Preserve unlimited pattern expansion with exclusions in compiled matchers and translation, and enforce
    finite limits when exclusions consume the entire pattern budget.
  • FIX: Fix an invalid regular expression error when an EXTGLOB/EXTMATCH inverse group, !(...), is followed
    by an extended group that contains another extended group, e.g. !(a)@(b|*(c)).
  • FIX: Fix an EXTGLOB/EXTMATCH star group, *(...), being matched as literal text when it directly follows
    another *, e.g. a**(b).
  • FIX: Fix glob and iglob returning the same path twice when two patterns find it and case is ignored, e.g.
    ['A*', '*b'] with IGNORECASE and a file named Ab. Files that only differ by case are no longer treated as
    duplicates when the file system is case sensitive.
  • FIX: According to Bash, a file name that starts with an extended group should never match . or ...
  • FIX: Preserve leading-dot restrictions for wildcards after extended groups that can match an empty string,
    such as ?(a)*, and avoid returning . and .. from these directory scans.
  • FIX: Fix rglob treating a pattern that starts with ** or *** as if it started with *, e.g. **/a.txt
    with GLOBSTAR missed a.txt in the searched folder and returned a.txt from inside a symlinked folder.