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

Predicate isInterpretedAsRegExp

Holds if source may be interpreted as a regular expression.

Import path

import javascript
predicate isInterpretedAsRegExp(Node source)