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

Predicate RegExp::isFullyAnchoredTerm

Holds if term and all of its disjuncts are anchored to both ends of the input.

Does not hold if a regular expression using the term has multiline or unknown flags.

Import path

import javascript
predicate isFullyAnchoredTerm(RegExpTerm term)