Skip to content

Commit f9f52b0

Browse files
committed
Python: test for unicode in raw strings
1 parent 451ae7b commit f9f52b0

File tree

1 file changed

+3
-0
lines changed
  • python/ql/test/query-tests/Expressions/Regex

1 file changed

+3
-0
lines changed

python/ql/test/query-tests/Expressions/Regex/test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,6 @@
139139

140140
#Potentially mis-parsed character set
141141
re.compile(r"\[(?P<txt>[^[]*)\]\((?P<uri>[^)]*)")
142+
143+
#Allow unicode in raw strings
144+
re.compile(r"[\U00010000-\U0010FFFF]")

0 commit comments

Comments
 (0)