Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
gbicann committed Apr 2, 2024
2 parents 3b9199a + f51824b commit 7b5ad32
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,15 @@
}

function domainMatch(tld, domain) {
return punycode.toASCII(domain).toUpperCase().endsWith('.' + tld.toUpperCase());
if (tld == '' && !domain.includes('.')) {
// an empty TLD indicates the root zone, and no dot indicates domain
// is a TLD
return true;

} else {
return punycode.toASCII(domain).toUpperCase().endsWith('.' + tld.toUpperCase());

}
}

function asnMatch(range, asn) {
Expand Down

0 comments on commit 7b5ad32

Please sign in to comment.