mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Swift: Match flag groups more strictly as other (? group types exist.
This commit is contained in:
@@ -283,6 +283,7 @@ abstract class RegExp extends Expr {
|
||||
private predicate flagGroupStart(int start, int end) {
|
||||
this.isGroupStart(start) and
|
||||
this.getChar(start + 1) = "?" and
|
||||
this.getChar(start + 2) in ["i", "x", "s", "m", "w"] and
|
||||
end = start + 2
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user