mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
13 lines
288 B
Plaintext
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
|