Skip to content

Commit de50aab

Browse files
committed
Python: test for unicode names
1 parent 4c7cf2a commit de50aab

File tree

1 file changed

+4
-1
lines changed
  • python/ql/test/query-tests/Expressions/Regex

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,7 @@
141141
re.compile(r"\[(?P<txt>[^[]*)\]\((?P<uri>[^)]*)")
142142

143143
#Allow unicode in raw strings
144-
re.compile(r"[\U00010000-\U0010FFFF]")
144+
re.compile(r"[\U00010000-\U0010FFFF]")
145+
146+
#Allow unicode names
147+
re.compile(r"[\N{degree sign}\N{EM DASH}]")

0 commit comments

Comments
 (0)