mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Merge pull request #3464 from yoff/UnicodeEscape
Python: Handle more escapes in regexes
This commit is contained in:
@@ -139,3 +139,10 @@ re.compile(r'(?:(?P<n1>^(?:|x)))')
|
||||
|
||||
#Potentially mis-parsed character set
|
||||
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}]")
|
||||
Reference in New Issue
Block a user