Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/ql/test/library-tests/regex/Mode.expected
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
| 50 | VERBOSE |
| 51 | UNICODE |
| 52 | UNICODE |
| 64 | MULTILINE |
| 56 | VERBOSE |
| 68 | MULTILINE |
6 changes: 5 additions & 1 deletion python/ql/test/library-tests/regex/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
# 0123456789ABCDEF
# 0123456789ABCDEF
re.compile(r'012345678')
re.compile(r'(\033|~{)')
re.compile(r'\A[+-]?\d+')
Expand Down Expand Up @@ -50,6 +50,10 @@
re.compile("", flags=re.VERBOSE|re.IGNORECASE)
re.search("", None, re.UNICODE)
x = re.search("", flags=re.UNICODE)
# using addition for flags was reported as FP in https://github.com/github/codeql/issues/4707
re.compile("", re.VERBOSE+re.DOTALL) # TODO: Currently not recognized with Mode.ql
# re.X is an alias for re.VERBOSE
re.compile("", re.X)

#empty choice
re.compile(r'|x')
Expand Down