Skip to content

Commit 5dea539

Browse files
committed
Swift: Fix QL-for-QL suggestion.
1 parent 96dece3 commit 5dea539

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

swift/ql/lib/codeql/swift/regex/internal/RegexTracking.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ module StringLiteralUseFlow = DataFlow::Global<StringLiteralUseConfig>;
3636
private module RegexUseConfig implements DataFlow::ConfigSig {
3737
predicate isSource(DataFlow::Node node) {
3838
// creation of the regex
39-
exists(RegexCreation regexCreation |
40-
node = regexCreation
41-
)
39+
node instanceof RegexCreation
4240
// TODO: track parse mode flags.
4341
}
4442

0 commit comments

Comments
 (0)