File tree Expand file tree Collapse file tree 5 files changed +15
-0
lines changed
python/ql/test/query-tests/Expressions/Regex Expand file tree Collapse file tree 5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
| test.py:17:12:17:22 | Str | Backspace escape in regular expression at offset 1. |
2
+ | test.py:17:12:17:22 | [\\b\\t ] | Backspace escape in regular expression at offset 1. |
3
+ | test.py:19:12:19:28 | E\\d+\\b[ \\b\\t] | Backspace escape in regular expression at offset 8. |
2
4
| test.py:19:12:19:28 | Str | Backspace escape in regular expression at offset 8. |
Original file line number Diff line number Diff line change 1
1
| test.py:46:12:46:18 | Str | This regular expression includes duplicate character 'A' in a set of characters. |
2
+ | test.py:46:12:46:18 | [AA] | This regular expression includes duplicate character 'A' in a set of characters. |
2
3
| test.py:47:12:47:19 | Str | This regular expression includes duplicate character '0' in a set of characters. |
4
+ | test.py:47:12:47:19 | [000] | This regular expression includes duplicate character '0' in a set of characters. |
3
5
| test.py:48:12:48:21 | Str | This regular expression includes duplicate character '-' in a set of characters. |
6
+ | test.py:48:12:48:21 | [-0-9-] | This regular expression includes duplicate character '-' in a set of characters. |
Original file line number Diff line number Diff line change
1
+ | test.py:22:12:22:29 | (P<name>[\\w]+) | Regular expression is missing '?' in named group. |
1
2
| test.py:22:12:22:29 | Str | Regular expression is missing '?' in named group. |
3
+ | test.py:23:12:23:33 | (_(P<name>[\\w]+)\|) | Regular expression is missing '?' in named group. |
2
4
| test.py:23:12:23:33 | Str | Regular expression is missing '?' in named group. |
Original file line number Diff line number Diff line change
1
+ | test.py:4:12:4:19 | ^abc | This regular expression includes an unmatchable caret at offset 1. |
1
2
| test.py:4:12:4:19 | Str | This regular expression includes an unmatchable caret at offset 1. |
3
+ | test.py:5:12:5:23 | (?s) ^abc | This regular expression includes an unmatchable caret at offset 5. |
2
4
| test.py:5:12:5:23 | Str | This regular expression includes an unmatchable caret at offset 5. |
3
5
| test.py:6:12:6:21 | Str | This regular expression includes an unmatchable caret at offset 2. |
6
+ | test.py:6:12:6:21 | \\[^123] | This regular expression includes an unmatchable caret at offset 2. |
7
+ | test.py:79:12:79:27 | (?<=foo)^\\w+ | This regular expression includes an unmatchable caret at offset 8. |
4
8
| test.py:79:12:79:27 | Str | This regular expression includes an unmatchable caret at offset 8. |
Original file line number Diff line number Diff line change 1
1
| test.py:29:12:29:19 | Str | This regular expression includes an unmatchable dollar at offset 3. |
2
+ | test.py:29:12:29:19 | abc$ | This regular expression includes an unmatchable dollar at offset 3. |
2
3
| test.py:30:12:30:23 | Str | This regular expression includes an unmatchable dollar at offset 3. |
4
+ | test.py:30:12:30:23 | abc$ (?s) | This regular expression includes an unmatchable dollar at offset 3. |
3
5
| test.py:31:12:31:20 | Str | This regular expression includes an unmatchable dollar at offset 2. |
6
+ | test.py:31:12:31:20 | \\[$] | This regular expression includes an unmatchable dollar at offset 2. |
4
7
| test.py:80:12:80:26 | Str | This regular expression includes an unmatchable dollar at offset 3. |
8
+ | test.py:80:12:80:26 | \\w+$(?=foo) | This regular expression includes an unmatchable dollar at offset 3. |
You can’t perform that action at this time.
0 commit comments