We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c40ffab commit fd64ff9Copy full SHA for fd64ff9
python/ql/lib/semmle/python/regex.qll
@@ -462,6 +462,7 @@ abstract class RegexString extends Expr {
462
/** Gets the number of the group in start,end */
463
int getGroupNumber(int start, int end) {
464
this.group(start, end) and
465
+ not this.non_capturing_group_start(start, _) and
466
result =
467
count(int i | this.group(i, _) and i < start and not this.non_capturing_group_start(i, _)) + 1
468
}
0 commit comments