mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Update python/ql/src/semmle/python/RegexTreeView.qll
Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
committed by
GitHub
parent
6da1007f67
commit
e962a7c77c
@@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user