From 823b6392457c71e189a73201497f7ab3b0e9cbf3 Mon Sep 17 00:00:00 2001 From: Yuhui Xu Date: Sat, 28 Aug 2021 22:02:03 -0500 Subject: [PATCH] frontend: also filter whois privacy redacted lines (#34) --- frontend/dn42.go | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/dn42.go b/frontend/dn42.go index 5f97ff8..d5aeaba 100644 --- a/frontend/dn42.go +++ b/frontend/dn42.go @@ -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++