]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-126505: Fix bugs in compiling case-insensitive character classes (GH-126557...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 11 Nov 2024 16:54:57 +0000 (17:54 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Nov 2024 16:54:57 +0000 (16:54 +0000)
commit7db6d4282fafff78c74e7e341b92f09666717772
treef3552b73cf89c4929135fb33183146552fbfdae7
parentfc10908f7dbfa8f0c817ebb5a3a470016409fca4
[3.13] gh-126505: Fix bugs in compiling case-insensitive character classes (GH-126557) (GH-126689)

* upper-case non-BMP character was ignored
* the ASCII flag was ignored when matching a character range whose
  upper bound is beyond the BMP region
(cherry picked from commit 819830f34a11ecaa3aada174ca8eedeb3f260630)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/re/_compiler.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2024-11-07-22-41-47.gh-issue-126505.iztYE1.rst [new file with mode: 0644]