mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
dont recognize regexps that match dot as sanitizers
This commit is contained in:
@@ -147,7 +147,9 @@ module MembershipCandidate {
|
||||
child instanceof RegExpConstant or
|
||||
child instanceof RegExpAlt or
|
||||
child instanceof RegExpGroup
|
||||
)
|
||||
) and
|
||||
// exclude "length matches" that match every string
|
||||
not this.getAChild*() instanceof RegExpDot
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user