CodeQL library for JavaScript/TypeScript
codeql/javascript-all 1.0.2 (changelog, source)

Predicate Templating::getDelimiterMatchingRegexpWithPrefix

Gets a regular expression that matches a string containing one of the known template delimiters identified by getADelimiter(), storing it in its first (and only) capture group. Where the string prior to the template delimiter matches the regexp prefix.

Import path

import javascript
string getDelimiterMatchingRegexpWithPrefix(string prefix)