]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] 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:47:37 +0000 (17:47 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Nov 2024 16:47:37 +0000 (16:47 +0000)
commit7d091d54c53b535897158326a853b7439fec463b
tree912f6253c5a0d49daf0cc948484c755f4e9c2ab1
parentaee80cd5e7c6be90c69b9aa9c09faa19b91cdccd
[3.12] gh-126505: Fix bugs in compiling case-insensitive character classes (GH-126557) (GH-126690)

* 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]