Skip to content

Commit

Permalink
chore: Add another ignore case for request date in whois result
Browse files Browse the repository at this point in the history
  • Loading branch information
nidotls committed Oct 22, 2024
1 parent 91bfc82 commit a5d2377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func whoisDomain(domain string) string {
lines := strings.Split(result, "\n")
result = ""
for _, line := range lines {
if strings.HasPrefix(line, "%") || strings.HasPrefix(line, ">>>") {
if strings.HasPrefix(line, "%") || strings.HasPrefix(line, ">>>") || strings.Contains(line, "WHOIS lookup made on ") {
continue
}
result += line + "\n"
Expand Down

0 comments on commit a5d2377

Please sign in to comment.