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 b5703cd commit 226c295Copy full SHA for 226c295
python/ql/src/semmle/python/regex.qll
@@ -622,10 +622,13 @@ abstract class RegexString extends Expr {
622
start = 0 and end = this.getText().length()
623
or
624
exists(int y | this.lastPart(start, y) |
625
- this.emptyMatchAtEndGroup(end, y) or
626
- this.qualifiedItem(end, y, true) or
627
- this.specialCharacter(end, y, "$") or
628
- y = end+2 and this.escapingChar(end) and this.getChar(end+1) = "Z"
+ this.emptyMatchAtEndGroup(end, y)
+ or
+ this.qualifiedItem(end, y, true)
629
+ this.specialCharacter(end, y, "$")
630
631
+ y = end + 2 and this.escapingChar(end) and this.getChar(end + 1) = "Z"
632
)
633
634
exists(int x |
0 commit comments