From 789ea8b2473699580d831c9a06feab9138f3ca01 Mon Sep 17 00:00:00 2001 From: tesseractjh Date: Wed, 3 Dec 2025 01:09:24 +0900 Subject: [PATCH] Allow arbitrary suffixes for use cache directives --- javascript/ql/lib/semmle/javascript/Stmt.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(:.*)?") } } }