mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
16 lines
338 B
Plaintext
16 lines
338 B
Plaintext
/**
|
|
* Flags regular expressions that are parsed ambigously
|
|
*/
|
|
|
|
import python
|
|
import semmle.python.RegexTreeView
|
|
|
|
from string str, int counter, Location loc
|
|
where
|
|
counter =
|
|
strictcount(RegExpTerm term |
|
|
term.getLocation() = loc and term.isRootTerm() and term.toString() = str
|
|
) and
|
|
counter > 1
|
|
select str, counter, loc
|