-
-
Couldn't load subscription status.
- Fork 33.3k
Closed as not planned
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
The regex.fullmatch method has incorrect behavior when the partial flag is set and the regex uses negative lookahead:
import regex
a = regex.compile(r"(?!(True|False)\b)(.*)")
print(a.fullmatch("True", partial=True))
# Should produce a match (since "True" is a prefix of the match "Truest") but does not.CPython versions tested on:
3.13
Operating systems tested on:
Linux
ninehusky
Metadata
Metadata
Assignees
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error