-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a few more shared providers, clean up duplicates
- Loading branch information
Bradley Kemp
committed
May 22, 2021
1 parent
024b411
commit 9892d51
Showing
2 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,13 +18,17 @@ var whoisMatchers = []matcher{ | |
{OnlineForm{"Namesilo", "https://www.namesilo.com/report_abuse.php or https://new.namesilo.com/phishing_report.php"}, whoisContains("[email protected]")}, | ||
{AbuseEmail{"OrangeWebsite", "[email protected]"}, whoisContains("[email protected]")}, | ||
{OnlineForm{"PublicDomainRegistry", "https://publicdomainregistry.com/process-for-handling-abuse/"}, whoisContains("[email protected]")}, | ||
{OnlineForm{"Tucows", "https://tucowsdomains.com/report-abuse/"}, whoisContains("[email protected]")}, | ||
{OnlineForm{"Tucows", "https://tucowsdomains.com/report-abuse/"}, whoisContains("[email protected]")}, | ||
{OnlineForm{"Tucows", "https://tucowsdomains.com/report-abuse/"}, whoisContains("[email protected]", "[email protected]")}, | ||
} | ||
|
||
func whoisContains(contents string) func(string) bool { | ||
func whoisContains(needles ...string) func(string) bool { | ||
return func(whois string) bool { | ||
return strings.Contains(whois, contents) | ||
for _, needle := range needles { | ||
if strings.Contains(whois, needle) { | ||
return true | ||
} | ||
} | ||
return false | ||
} | ||
} | ||
|
||
|