CodeQL library for JavaScript
Search

Predicate isInterpretedAsRegExp

Holds if source may be interpreted as a regular expression.

Import path

import javascript
predicate isInterpretedAsRegExp(Node source)