mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Python: merge test.py into unittests.py
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import re
|
||||
|
||||
# minimal example constructed by @erik-krogh
|
||||
baz = re.compile(r'\+0')
|
||||
|
||||
# exerpts from LGTM.com
|
||||
re.compile(r'\+0x')
|
||||
re.compile(r'\+0x.*')
|
||||
re.compile(r'+\-0+\.')
|
||||
re.compile('\s+\+0x[0-9]+')
|
||||
re.compile(r'\+0000 .*')
|
||||
re.compile('\#[0-9]+ 0x[0-9]')
|
||||
@@ -7,3 +7,14 @@ 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.
|
||||
|
||||
# minimal example constructed by @erik-krogh
|
||||
baz = re.compile(r'\+0')
|
||||
|
||||
# exerpts from LGTM.com
|
||||
re.compile(r'\+0x')
|
||||
re.compile(r'\+0x.*')
|
||||
re.compile(r'+\-0+\.')
|
||||
re.compile('\s+\+0x[0-9]+')
|
||||
re.compile(r'\+0000 .*')
|
||||
re.compile('\#[0-9]+ 0x[0-9]')
|
||||
|
||||
Reference in New Issue
Block a user