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 6099321 commit 672e4a3Copy full SHA for 672e4a3
javascript/ql/lib/semmle/javascript/AST.qll
@@ -207,7 +207,9 @@ private predicate isAmbientTopLevel(TopLevel tl) {
207
*/
208
class TopLevel extends @toplevel, StmtContainer {
209
/** Holds if this toplevel is minified. */
210
+ cached
211
predicate isMinified() {
212
+ Stages::Ast::ref() and
213
// file name contains 'min' (not as part of a longer word)
214
getFile().getBaseName().regexpMatch(".*[^-._]*[-._]min([-._].*)?\\.\\w+")
215
or
0 commit comments