mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
detect attempts to repeat anchors (fixes bug #130748)
This commit is contained in:
parent
8ac3627b91
commit
c0c7ee3a65
2 changed files with 5 additions and 0 deletions
|
@ -636,4 +636,6 @@ xyzabc
|
|||
(r'(?i)m+', 'MMM', SUCCEED, 'found', 'MMM'),
|
||||
(r'(?i)[M]+', 'MMM', SUCCEED, 'found', 'MMM'),
|
||||
(r'(?i)[m]+', 'MMM', SUCCEED, 'found', 'MMM'),
|
||||
# bug 130748: ^* should be an error (nothing to repeat)
|
||||
(r'^*', '', SYNTAX_ERROR),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue