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

Predicate Make::RegexpMatching::fillsCaptureGroup

Holds if matching str against reg may fill capture group number g. Only holds if str is in the testWithGroups predicate.

Import path

import codeql.regex.nfa.RegexpMatching
predicate fillsCaptureGroup(RootTerm reg, string str, int g)