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 dee5535 commit 21f683dCopy full SHA for 21f683d
python/ql/src/semmle/python/regex.qll
@@ -371,13 +371,10 @@ abstract class RegexString extends Expr {
371
or
372
// octal value \ooo
373
end in [start + 2 .. start + 4] and
374
- // this.isOctal([start + 1 .. end]) and
375
forall(int i | i in [start + 1 .. end - 1] | this.isOctal(i)) and
376
- // this.getText().substring(start + 1, end).toInt() >= 0 and
377
not (
378
end < start + 4 and
379
- this.isOctal(end) //and
380
- // exists(this.getText().substring(start + 1, end + 1).toInt())
+ this.isOctal(end)
381
)
382
383
// 16-bit hex value \uhhhh
0 commit comments