mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Update javascript/ql/src/semmle/javascript/security/performance/ReDoSUtil.qll
Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
committed by
GitHub
parent
62746bbbac
commit
11f35a5193
@@ -113,7 +113,7 @@ class RegExpRoot extends RegExpTerm {
|
||||
not exists(RegExpLookbehind lbh | getRoot(lbh) = this) and
|
||||
// is actually used as a RegExp
|
||||
isUsedAsRegExp() and
|
||||
// is not inside a minified file.
|
||||
// pragmatic performance optimization: ignore minified files.
|
||||
not getRootTerm().getParent().(Expr).getTopLevel().isMinified()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user