CodeQL library for Swift
codeql/swift-all 3.0.1-dev (changelog, source)
Search

Predicate Make::isInsideChoiceOrSubPattern

Holds if term occurs inside a quantifier or alternative (and thus can not be expected to correspond to a unique match), or as part of a lookaround assertion (which are rarely used for capture groups).

Import path

import codeql.regex.HostnameRegexp
predicate isInsideChoiceOrSubPattern(RegExpTerm term)