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

Member predicate StringOps::RegExpTest::getPolarity

Gets the return value indicating that the string matched the regular expression.

For example, for regexp.exec(str) == null, the polarity is false, and for regexp.exec(str) != null the polarity is true.

boolean getPolarity()