mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
SRE didn't handle character category followed by hyphen inside a
character class. Fix provided by Andrew Kuchling. Closes bug #116251.
This commit is contained in:
parent
53f3d4ac74
commit
025468d246
2 changed files with 4 additions and 0 deletions
|
@ -619,4 +619,6 @@ xyzabc
|
|||
(r' (?x)foo ', 'foo', SUCCEED, 'found', 'foo'),
|
||||
# bug 115618: negative lookahead
|
||||
(r'(?<!abc)(d.f)', 'abcdefdof', SUCCEED, 'found', 'dof'),
|
||||
# bug 116251: character class bug
|
||||
(r'[\w-]+', 'laser_beam', SUCCEED, 'found', 'laser_beam'),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue