diff --git a/javascript/ql/lib/semmle/javascript/Stmt.qll b/javascript/ql/lib/semmle/javascript/Stmt.qll index 453bc407622..bbdf85df1b1 100644 --- a/javascript/ql/lib/semmle/javascript/Stmt.qll +++ b/javascript/ql/lib/semmle/javascript/Stmt.qll @@ -447,7 +447,7 @@ module Directive { * ``` */ class UseCacheDirective extends KnownDirective { - UseCacheDirective() { this.getDirectiveText().regexpMatch("use cache(: (remote|private))?") } + UseCacheDirective() { this.getDirectiveText().regexpMatch("use cache(:.*)?") } } }