CodeQL library for JavaScript
Search

Predicate RegExp::getRegExpFromNode

Gets the AST of a regular expression that can flow to node, including RegExp objects as well as strings interpreted as regular expressions.

Import path

import javascript
RegExpTerm getRegExpFromNode(Node node)