Add additional synonyms for WHOIS normalization (fixes #10)

This commit is contained in:
2025-10-20 14:15:23 -04:00
parent 2a1b7529cc
commit d87e898a9f
2 changed files with 43 additions and 0 deletions
+9
View File
@@ -31,12 +31,15 @@ export function normalizeWhois(
"domain create date",
"created",
"registered",
// CNNIC (.cn)
"registration time",
// EDUCAUSE (.edu)
"domain record activated",
]);
const updatedDate = anyValue(map, [
"updated date",
"last updated",
"last update",
"last modified",
"modified",
// EDUCAUSE (.edu)
@@ -47,6 +50,10 @@ export function normalizeWhois(
"registry expiration date",
"expiry date",
"expiration date",
// ccTLDs like .it use "Expire Date"
"expire date",
// CNNIC (.cn)
"expiration time",
// Registrar-side synonyms commonly seen after referrals
"registrar registration expiration date",
"registrar registration expiry date",
@@ -56,6 +63,8 @@ export function normalizeWhois(
"domain expires",
"paid-till",
"expires on",
// Some registries use a bare "expires" key
"expires",
"renewal date",
]);