File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
python/ql/lib/semmle/python Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -198,13 +198,11 @@ abstract class RegexString extends Expr {
198
198
199
199
/** Whether there is a character class, between start (inclusive) and end (exclusive) */
200
200
predicate charSet ( int start , int end ) {
201
- exists ( int inner_start , int inner_end |
201
+ exists ( int inner_start |
202
202
this .char_set_start ( start , inner_start ) and
203
203
not this .char_set_start ( _, start )
204
204
|
205
- end = inner_end + 1 and
206
- inner_end > inner_start and
207
- inner_end = min ( int i | this .nonEscapedCharAt ( i ) = "]" and inner_start < i )
205
+ end - 1 = min ( int i | this .nonEscapedCharAt ( i ) = "]" and inner_start < i )
208
206
)
209
207
}
210
208
@@ -343,7 +341,6 @@ abstract class RegexString extends Expr {
343
341
this .escapingChar ( start ) and
344
342
this .getChar ( start + 1 ) = "N" and
345
343
this .getChar ( start + 2 ) = "{" and
346
- end > start and
347
344
end - 1 = min ( int i | start + 2 < i and this .getChar ( i ) = "}" )
348
345
}
349
346
You can’t perform that action at this time.
0 commit comments