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

Predicate RegExpTreeView::matchesAnyPrefix

Holds if the regex that term is part of is used in a way that ignores any leading prefix of the input it’s matched against. Not yet implemented for JavaScript.

Import path

import semmle.javascript.security.regexp.RegExpTreeView
predicate matchesAnyPrefix(RegExpTerm term)