File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
python/ql/lib/semmle/python/regexp/internal Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -683,10 +683,8 @@ class RegExp extends Expr instanceof StrConst {
683
683
* Holds if a parse mode starts between `start` and `end`.
684
684
*/
685
685
private predicate flag_group_start ( int start , int end ) {
686
- exists ( int no_modes_end |
687
- this .flag_group_start_no_modes ( start , no_modes_end ) and
688
- end = max ( int i | this .mode_character ( start , i ) | i + 1 )
689
- )
686
+ this .flag_group_start_no_modes ( start , _) and
687
+ end = max ( int i | this .mode_character ( start , i ) | i + 1 )
690
688
}
691
689
692
690
/**
@@ -712,8 +710,8 @@ class RegExp extends Expr instanceof StrConst {
712
710
}
713
711
714
712
/**
715
- * Holds if a parse mode group is between `start` and `end`, and includes the
716
- * mode flag `c`. For example the following span , with mode flag `i`:
713
+ * Holds if a parse mode group includes the mode flag `c`.
714
+ * For example the following parse mode group , with mode flag `i`:
717
715
* ```
718
716
* (?i)
719
717
* ```
You can’t perform that action at this time.
0 commit comments