Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88fc96e

Browse files
committed
Python: Add test with prefix
1 parent 7ad1a21 commit 88fc96e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • python/ql/test/query-tests/Security/CWE-730-ReDoS

python/ql/test/query-tests/Security/CWE-730-ReDoS/unittests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
re.compile(r'(?i)(?:.|\n)*b') # No ReDoS.
1111
re.compile(r'(?s)(?:.|\n)*b') # Has ReDoS.
1212
re.compile(r'(?is)(?:.|\n)*b') # Has ReDoS.
13+
re.compile(r'(?is)X(?:.|\n)*Y') # Has ReDoS.

0 commit comments

Comments
 (0)