Skip to content

Commit d3af8c5

Browse files
committed
Swift: The perf. issue is fixed by above commit "Do regex locations more like Ruby does them."
1 parent 925477e commit d3af8c5

File tree

3 files changed

+883
-778
lines changed

3 files changed

+883
-778
lines changed

swift/ql/lib/codeql/swift/regex/RegexTreeView.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,9 +1188,7 @@ private module Impl implements RegexTreeViewSig {
11881188
/**
11891189
* Holds if the regular expression should not be considered.
11901190
*/
1191-
predicate isExcluded(RegExpParent parent) {
1192-
none()
1193-
}
1191+
predicate isExcluded(RegExpParent parent) { none() }
11941192

11951193
/**
11961194
* Holds if `term` is a possessive quantifier.

0 commit comments

Comments
 (0)