frontend: also filter whois privacy redacted lines (#34)

This commit is contained in:
Yuhui Xu 2021-08-28 22:02:03 -05:00 committed by GitHub
parent b0c0e5442d
commit 823b639245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ func shortenWhoisFilter(whois string) string {
shouldSkip := false
shouldSkip = shouldSkip || len(s) == 0
shouldSkip = shouldSkip || len(s) > 0 && s[0] == '#'
shouldSkip = shouldSkip || strings.Contains(strings.ToUpper(s), "REDACTED FOR PRIVACY")
if shouldSkip {
skippedLinesLonger++