CodeQL library for Java/Kotlin
codeql/java-all 0.9.0 (changelog, source)
Search

Predicate Impl::matchesAnySuffix

Holds if the regex that term is part of is used in a way that ignores any trailing suffix of the input it’s matched against.

Import path

import semmle.code.java.regex.RegexTreeView
predicate matchesAnySuffix(RegExpTerm term)