We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd8810 commit e225ea6Copy full SHA for e225ea6
swift/ql/lib/codeql/swift/regex/Regex.qll
@@ -476,12 +476,6 @@ private class NSStringCompareOptionsPotentialRegexEval extends PotentialRegexEva
476
override predicate doesEvaluate() {
477
// check there is flow from a `NSString.CompareOptions.regularExpression` value to an `options` argument;
478
// if there isn't, the input won't be interpretted as a regular expression.
479
- exists(MemberRefExpr sourceValue |
480
- sourceValue
481
- .getMember()
482
- .(FieldDecl)
483
- .hasQualifiedName("NSString.CompareOptions", "regularExpression") and
484
- RegexEnableFlagFlow::flow(DataFlow::exprNode(sourceValue), optionsInput)
485
- )
+ RegexEnableFlagFlow::flow(_, optionsInput)
486
}
487
0 commit comments