mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
10 lines
231 B
Python
10 lines
231 B
Python
import re
|
|
|
|
# Treatment of escapes
|
|
re.compile(r"X([^\.]|\.)*$") # No ReDoS.
|
|
re.compile(r"X(Æ|\Æ)+$") # Has ReDoS.
|
|
|
|
# Treatment of line breaks
|
|
re.compile(r'(?:.|\n)*b') # No ReDoS.
|
|
re.compile(r'(?:.|\n)*b', re.DOTALL) # Has ReDoS.
|