We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
test.py
unittests.py
1 parent 3c647c6 commit c455483Copy full SHA for c455483
python/ql/test/library-tests/regexparser/test.py
python/ql/test/library-tests/regexparser/unittests.py
@@ -7,3 +7,14 @@
7
# Treatment of line breaks
8
re.compile(r'(?:.|\n)*b') # No ReDoS.
9
re.compile(r'(?:.|\n)*b', re.DOTALL) # Has ReDoS.
10
+
11
+# minimal example constructed by @erik-krogh
12
+baz = re.compile(r'\+0')
13
14
+# exerpts from LGTM.com
15
+re.compile(r'\+0x')
16
+re.compile(r'\+0x.*')
17
+re.compile(r'+\-0+\.')
18
+re.compile('\s+\+0x[0-9]+')
19
+re.compile(r'\+0000 .*')
20
+re.compile('\#[0-9]+ 0x[0-9]')
0 commit comments