We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0b70d1 + 11f35a5 commit 0e059ceCopy full SHA for 0e059ce
javascript/ql/src/semmle/javascript/security/performance/ReDoSUtil.qll
@@ -112,7 +112,9 @@ class RegExpRoot extends RegExpTerm {
112
// there are no lookbehinds
113
not exists(RegExpLookbehind lbh | getRoot(lbh) = this) and
114
// is actually used as a RegExp
115
- isUsedAsRegExp()
+ isUsedAsRegExp() and
116
+ // pragmatic performance optimization: ignore minified files.
117
+ not getRootTerm().getParent().(Expr).getTopLevel().isMinified()
118
}
119
120
0 commit comments