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

Member predicate AddExpr::asRegExp

Gets the value of this string concatenation parsed as a regular expression, if possible.

All string literals have an associated regular expression tree, provided they can be parsed without syntax errors.

RegExpTerm asRegExp()