frontend: also filter whois privacy redacted lines (#34)
This commit is contained in:
parent
b0c0e5442d
commit
823b639245
@ -65,6 +65,7 @@ func shortenWhoisFilter(whois string) string {
|
|||||||
shouldSkip := false
|
shouldSkip := false
|
||||||
shouldSkip = shouldSkip || len(s) == 0
|
shouldSkip = shouldSkip || len(s) == 0
|
||||||
shouldSkip = shouldSkip || len(s) > 0 && s[0] == '#'
|
shouldSkip = shouldSkip || len(s) > 0 && s[0] == '#'
|
||||||
|
shouldSkip = shouldSkip || strings.Contains(strings.ToUpper(s), "REDACTED FOR PRIVACY")
|
||||||
|
|
||||||
if shouldSkip {
|
if shouldSkip {
|
||||||
skippedLinesLonger++
|
skippedLinesLonger++
|
||||||
|
Loading…
x
Reference in New Issue
Block a user