We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 952a5d2 commit ef344c6Copy full SHA for ef344c6
1 file changed
swift/ql/lib/codeql/swift/regex/internal/ParseRegex.qll
@@ -283,6 +283,7 @@ abstract class RegExp extends Expr {
283
private predicate flagGroupStart(int start, int end) {
284
this.isGroupStart(start) and
285
this.getChar(start + 1) = "?" and
286
+ this.getChar(start + 2) in ["i", "x", "s", "m", "w"] and
287
end = start + 2
288
}
289
0 commit comments