(domain) id.au should be treated as a TLD

This commit is contained in:
Viktor Lofgren 2023-11-06 19:07:47 +01:00
parent d29f9c4ffd
commit 7aa2f80117
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ package nu.marginalia.db;
import com.zaxxer.hikari.HikariDataSource;
import gnu.trove.list.TIntList;
import gnu.trove.list.array.TIntArrayList;
import nu.marginalia.model.EdgeDomain;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;

View File

@ -57,7 +57,7 @@ public class EdgeDomain implements Serializable {
}
}
private static final Predicate<String> govListTest = Pattern.compile(".*\\.(ac|co|org|gov|edu|com)\\.[a-z]{2}").asMatchPredicate();
private static final Predicate<String> govListTest = Pattern.compile(".*\\.(id|ac|co|org|gov|edu|com)\\.[a-z]{2}").asMatchPredicate();
private boolean looksLikeGovTld(String host) {
if (host.length() < 8)
return false;