mirror of
https://github.com/github/codeql.git
synced 2026-03-01 13:23:49 +01:00
Fix to PolynomialRedos not finding results and to test cases not finding that
This commit is contained in:
@@ -73,6 +73,8 @@ class RegExpLiteral extends TRegExpLiteral, RegExpParent {
|
||||
|
||||
RegExpLiteral() { this = TRegExpLiteral(re) }
|
||||
|
||||
override string toString() { result = re.toString() }
|
||||
|
||||
override RegExpTerm getChild(int i) { i = 0 and result.getRegex() = re and result.isRootTerm() }
|
||||
|
||||
/** Holds if dot, `.`, matches all characters, including newlines. */
|
||||
|
||||
Reference in New Issue
Block a user