From f461549ade41796351727744277d1bcd31deb8e9 Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 8 Jul 2020 12:05:58 +0200 Subject: [PATCH 1/5] added .nl to multiline parser list --- src/parsers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsers.js b/src/parsers.js index e4098b5..ee221ee 100644 --- a/src/parsers.js +++ b/src/parsers.js @@ -194,7 +194,7 @@ const parseDomainWhois = (domain, whois) => { .map(line => line.replace("\t", ' ')) - if (domain.endsWith('.uk') || domain.endsWith('.be') || domain.endsWith('.eu')) { + if (domain.endsWith('.uk') || domain.endsWith('.be') || domain.endsWith('.nl') || domain.endsWith('.eu')) { lines = handleMultiLines(lines) } From 71df23db64a1c5db3f2d5546698f33fff58f5e0d Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 8 Jul 2020 13:56:05 +0200 Subject: [PATCH 2/5] update parser --- src/parsers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/parsers.js b/src/parsers.js index ee221ee..655a673 100644 --- a/src/parsers.js +++ b/src/parsers.js @@ -114,7 +114,6 @@ const parseDomainWhois = (domain, whois) => { const renameLabels = { 'domain name': 'Domain Name', domain: 'Domain Name', - dns: 'Domain Name', 'idn tag': 'IDN', 'internationalized domain name': 'IDN', nameserver: 'Name Server', @@ -122,6 +121,7 @@ const parseDomainWhois = (domain, whois) => { nserver: 'Name Server', 'name servers': 'Name Server', 'name server information': 'Name Server', + dns: 'Name Server', 'hostname': 'Name Server', flags: 'Domain Status', status: 'Domain Status', @@ -134,6 +134,7 @@ const parseDomainWhois = (domain, whois) => { 'registrar website': 'Registrar URL', 'creation date': 'Created Date', 'registered on': 'Created Date', + 'registration date': 'Created Date', 'relevant dates registered on': 'Created Date', created: 'Created Date', 'registration time': 'Created Date', @@ -141,6 +142,7 @@ const parseDomainWhois = (domain, whois) => { 'last updated': 'Updated Date', changed: 'Updated Date', modified: 'Updated Date', + 'modification date': 'Updated Date', 'last modified': 'Updated Date', 'relevant dates last updated': 'Updated Date', 'registrar registration expiration date': 'Expiry Date', @@ -149,6 +151,7 @@ const parseDomainWhois = (domain, whois) => { expires: 'Expiry Date', 'expiration time': 'Expiry Date', 'expire date': 'Expiry Date', + 'Expiration date': 'Expiry Date', 'paid-till': 'Expiry Date', 'expiry date': 'Expiry Date', 'expire': 'Expiry Date', From 6af935bfc45c81b71d0a4cba7ba084b96a6a22af Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 8 Jul 2020 13:58:55 +0200 Subject: [PATCH 3/5] fix typo --- src/parsers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsers.js b/src/parsers.js index 655a673..292f573 100644 --- a/src/parsers.js +++ b/src/parsers.js @@ -151,7 +151,7 @@ const parseDomainWhois = (domain, whois) => { expires: 'Expiry Date', 'expiration time': 'Expiry Date', 'expire date': 'Expiry Date', - 'Expiration date': 'Expiry Date', + 'expiration date': 'Expiry Date', 'paid-till': 'Expiry Date', 'expiry date': 'Expiry Date', 'expire': 'Expiry Date', From 587dc9ec12589e98fde73b69d142539d0efaa13c Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 8 Jul 2020 14:19:41 +0200 Subject: [PATCH 4/5] added .ax registry fields to renameLabels --- src/parsers.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parsers.js b/src/parsers.js index 292f573..e9262ad 100644 --- a/src/parsers.js +++ b/src/parsers.js @@ -122,6 +122,7 @@ const parseDomainWhois = (domain, whois) => { 'name servers': 'Name Server', 'name server information': 'Name Server', dns: 'Name Server', + 'nserver..............': 'Name Server', 'hostname': 'Name Server', flags: 'Domain Status', status: 'Domain Status', @@ -130,8 +131,10 @@ const parseDomainWhois = (domain, whois) => { organisation: 'Registrar', registrar: 'Registrar', 'registrar name': 'Registrar', + 'registrar............': 'Registrar', url: 'Registrar URL', 'registrar website': 'Registrar URL', + 'www..................': 'Registrar URL', 'creation date': 'Created Date', 'registered on': 'Created Date', 'registration date': 'Created Date', @@ -139,6 +142,7 @@ const parseDomainWhois = (domain, whois) => { created: 'Created Date', 'registration time': 'Created Date', 'registered': 'Created Date', + 'created..............': 'Created Date', 'last updated': 'Updated Date', changed: 'Updated Date', modified: 'Updated Date', @@ -152,6 +156,7 @@ const parseDomainWhois = (domain, whois) => { 'expiration time': 'Expiry Date', 'expire date': 'Expiry Date', 'expiration date': 'Expiry Date', + 'expires..............': 'Expiry Date', 'paid-till': 'Expiry Date', 'expiry date': 'Expiry Date', 'expire': 'Expiry Date', From 5d32f7298e95e1d4074e6b377ad5273cf63cc284 Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 8 Jul 2020 16:30:10 +0200 Subject: [PATCH 5/5] added registry labels --- src/parsers.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parsers.js b/src/parsers.js index e9262ad..4bdd34a 100644 --- a/src/parsers.js +++ b/src/parsers.js @@ -132,9 +132,12 @@ const parseDomainWhois = (domain, whois) => { registrar: 'Registrar', 'registrar name': 'Registrar', 'registrar............': 'Registrar', + 'record maintained by': 'Registrar', + 'sponsoring registrar': 'Registrar', url: 'Registrar URL', 'registrar website': 'Registrar URL', 'www..................': 'Registrar URL', + 'web': 'Registrar URL', 'creation date': 'Created Date', 'registered on': 'Created Date', 'registration date': 'Created Date', @@ -143,6 +146,7 @@ const parseDomainWhois = (domain, whois) => { 'registration time': 'Created Date', 'registered': 'Created Date', 'created..............': 'Created Date', + 'domain registered': 'Created Date', 'last updated': 'Updated Date', changed: 'Updated Date', modified: 'Updated Date', @@ -161,6 +165,7 @@ const parseDomainWhois = (domain, whois) => { 'expiry date': 'Expiry Date', 'expire': 'Expiry Date', 'relevant dates expiry date': 'Expiry Date', + 'record will expire on': 'Expiry Date', registrant: 'Registrant Name', 'registrant contact name': 'Registrant Name', 'registrant contact email': 'Registrant Email',