unlimited repetition of a wildcard is also a wildcard

This commit is contained in:
Erik Krogh Kristensen
2021-04-28 11:46:35 +02:00
parent 160fa148f1
commit d07c71c99d

View File

@@ -1078,6 +1078,12 @@ module RegExp {
not cls.isInverted() and
cls.getAChild().(RegExpCharacterClassEscape).getValue().isUppercase()
)
or
// an unlimited number of wildcards, is also a wildcard.
exists(InfiniteRepetitionQuantifier q |
term = q and
isWildcardLike(q.getAChild())
)
}
/**