Skip to content

Commit 437a832

Browse files
tesseractjhasgerf
authored andcommitted
Allow arbitrary suffixes for use cache directives
1 parent 7d32876 commit 437a832

File tree

1 file changed

+1
-1
lines changed
  • javascript/ql/lib/semmle/javascript

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/Stmt.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ module Directive {
447447
* ```
448448
*/
449449
class UseCacheDirective extends KnownDirective {
450-
UseCacheDirective() { this.getDirectiveText().regexpMatch("use cache(: (remote|private))?") }
450+
UseCacheDirective() { this.getDirectiveText().regexpMatch("use cache(:.*)?") }
451451
}
452452
}
453453

0 commit comments

Comments
 (0)