Files
codeql/python/ql/test/library-tests/regex/Consistency.ql
2023-05-01 10:42:14 +02:00

13 lines
288 B
Plaintext

/**
* Flags regular expressions that are parsed ambigously
*/
import python
import semmle.python.regex
from string str, Location loc, int counter
where
counter = strictcount(RegExp term | term.getLocation() = loc and term.getText() = str) and
counter > 1
select str, counter, loc