Python: handle \uxxxx and refactor

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-05-14 21:22:21 +02:00
parent c7ddd2c20c
commit 81a5692935
2 changed files with 25 additions and 12 deletions

View File

@@ -142,6 +142,7 @@ re.compile(r"\[(?P<txt>[^[]*)\]\((?P<uri>[^)]*)")
#Allow unicode in raw strings
re.compile(r"[\U00010000-\U0010FFFF]")
re.compile(r"[\u0000-\uFFFF]")
#Allow unicode names
re.compile(r"[\N{degree sign}\N{EM DASH}]")