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)