mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
unlimited repetition of a wildcard is also a wildcard
This commit is contained in:
@@ -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())
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user