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

Predicate isInterpretedAsRegExp

Holds if source may be interpreted as a regular expression.

Import path

import javascript
predicate isInterpretedAsRegExp(Node source)