mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
C++: Reduce number of regexps.
This commit is contained in:
@@ -34,7 +34,7 @@ predicate hardCodedAddressOrIP(StringLiteral txt) {
|
||||
s.matches("\"www.%\"") or
|
||||
s.matches("\"http:%\"") or
|
||||
s.matches("\"https:%\"") or
|
||||
s.regexpMatch("\".*\\." + getATopLevelDomain() + "\"")
|
||||
s.regexpMatch("\".*\\.(" + concat(getATopLevelDomain(), "|") + ")\"")
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user