Update python/ql/src/semmle/python/RegexTreeView.qll

Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
Erik Krogh Kristensen
2021-08-16 11:24:05 +02:00
committed by GitHub
parent 6da1007f67
commit e962a7c77c

View File

@@ -839,9 +839,11 @@ class RegExpSubPattern extends RegExpZeroWidthMatch {
/** Gets the lookahead term. */
RegExpTerm getOperand() {
result.getRegex() = re and
result.getStart() = start + 3 and
result.getEnd() = end - 1
exists(int in_start, int in_end | re.groupContents(start, end, in_start, in_end) |
result.getRegex() = re and
result.getStart() = in_start and
result.getEnd() = in_end
)
}
}