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

Predicate isInterpretedAsRegExp

Holds if source may be interpreted as a regular expression.

Import path

import javascript
predicate isInterpretedAsRegExp(Node source)