CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.12 (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()