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

Predicate Make::isBadRegexpFilter

Holds if regexp matches some HTML tags, but misses some HTML tags that it should match.

When adding a new case to this predicate, make sure the test string used in matches(..) calls are present in HTMLMatchingRegExp::test / HTMLMatchingRegExp::testWithGroups.

Import path

import codeql.regex.nfa.BadTagFilterQuery
predicate isBadRegexpFilter(HtmlMatchingRegExp regexp, string msg)