Commit afe1b03
gh-153169: Look through marks in the regex alternation quick check
The BRANCH quick check skips an alternative whose first literal or
character set cannot match the current character, but only when it is
the very first op, so alternatives starting with a capturing group or
with a repeat with a nonzero minimum were never skipped. Look through
MARK ops and into the repeated item.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a47a66c commit afe1b03
2 files changed
Lines changed: 40 additions & 0 deletions
File tree
- Misc/NEWS.d/next/Library
- Modules/_sre
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
878 | 914 | | |
879 | 915 | | |
880 | 916 | | |
| |||
0 commit comments