Skip to content

Commit 11f35a5

Browse files
erik-kroghesbena
andauthored
Update javascript/ql/src/semmle/javascript/security/performance/ReDoSUtil.qll
Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
1 parent 62746bb commit 11f35a5

File tree

1 file changed

+1
-1
lines changed
  • javascript/ql/src/semmle/javascript/security/performance

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/security/performance/ReDoSUtil.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class RegExpRoot extends RegExpTerm {
113113
not exists(RegExpLookbehind lbh | getRoot(lbh) = this) and
114114
// is actually used as a RegExp
115115
isUsedAsRegExp() and
116-
// is not inside a minified file.
116+
// pragmatic performance optimization: ignore minified files.
117117
not getRootTerm().getParent().(Expr).getTopLevel().isMinified()
118118
}
119119
}

0 commit comments

Comments
 (0)