mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Python: test zero iterations
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
| test.py:45:12:45:18 | Str | This regular expression includes duplicate character 'A' in a set of characters. |
|
||||
| test.py:46:12:46:19 | Str | This regular expression includes duplicate character '0' in a set of characters. |
|
||||
| test.py:47:12:47:21 | Str | This regular expression includes duplicate character '-' in a set of characters. |
|
||||
| test.py:46:12:46:18 | Str | This regular expression includes duplicate character 'A' in a set of characters. |
|
||||
| test.py:47:12:47:19 | Str | This regular expression includes duplicate character '0' in a set of characters. |
|
||||
| test.py:48:12:48:21 | Str | This regular expression includes duplicate character '-' in a set of characters. |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
| test.py:4:12:4:19 | Str | This regular expression includes an unmatchable caret at offset 1. |
|
||||
| test.py:5:12:5:23 | Str | This regular expression includes an unmatchable caret at offset 5. |
|
||||
| test.py:6:12:6:21 | Str | This regular expression includes an unmatchable caret at offset 2. |
|
||||
| test.py:78:12:78:27 | Str | This regular expression includes an unmatchable caret at offset 8. |
|
||||
| test.py:79:12:79:27 | Str | This regular expression includes an unmatchable caret at offset 8. |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
| test.py:29:12:29:19 | Str | This regular expression includes an unmatchable dollar at offset 3. |
|
||||
| test.py:30:12:30:23 | Str | This regular expression includes an unmatchable dollar at offset 3. |
|
||||
| test.py:31:12:31:20 | Str | This regular expression includes an unmatchable dollar at offset 2. |
|
||||
| test.py:79:12:79:26 | Str | This regular expression includes an unmatchable dollar at offset 3. |
|
||||
| test.py:80:12:80:26 | Str | This regular expression includes an unmatchable dollar at offset 3. |
|
||||
|
||||
@@ -40,6 +40,7 @@ re.match(b"((a$)|b){4}", b"bbba") # Inspired by FP report here: https://github.c
|
||||
re.match(b"((a$).*)", b"a")
|
||||
re.match("(\Aab$|\Aba$)$\Z", "ab")
|
||||
re.match(b"((a$\Z)|b){4}", b"bbba")
|
||||
re.match(b"(a){00}b", b"b")
|
||||
|
||||
#Duplicate character in set
|
||||
re.compile(b"[AA]")
|
||||
|
||||
Reference in New Issue
Block a user