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

Predicate matchesEpsilon

Holds if t matches at least an epsilon symbol.

That is, this term does not restrict the language of the enclosing regular expression.

This is implemented as an under-approximation, and this predicate does not hold for sub-patterns in particular.

Import path

import semmle.code.java.security.performance.ReDoSUtil
predicate matchesEpsilon(RegExpTerm t)