Fix regex invalid escape sequences (#11276)

This commit is contained in:
Adriane Boyd 2022-08-09 10:59:36 +02:00
parent 7d12262145
commit 7fefb39e58

View File

@ -3,7 +3,7 @@ from ..punctuation import TOKENIZER_INFIXES as BASE_TOKENIZER_INFIXES
_infixes = (
["·", "", "\(", "\)"]
["·", "", r"\(", r"\)"]
+ [r"(?<=[0-9])~(?=[0-9-])"]
+ LIST_QUOTES
+ BASE_TOKENIZER_INFIXES