Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added .nl to multiline parser list #18

Merged
merged 5 commits into from
Jul 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions src/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,15 @@ 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',
nameservers: 'Name Server',
nserver: 'Name Server',
'name servers': 'Name Server',
'name server information': 'Name Server',
dns: 'Name Server',
'nserver..............': 'Name Server',
'hostname': 'Name Server',
flags: 'Domain Status',
status: 'Domain Status',
Expand All @@ -130,17 +131,26 @@ const parseDomainWhois = (domain, whois) => {
organisation: 'Registrar',
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',
'relevant dates registered on': 'Created Date',
created: 'Created Date',
'registration time': 'Created Date',
'registered': 'Created Date',
'created..............': 'Created Date',
'domain registered': 'Created Date',
'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',
Expand All @@ -149,10 +159,13 @@ const parseDomainWhois = (domain, whois) => {
expires: 'Expiry Date',
'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',
'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',
Expand Down Expand Up @@ -194,7 +207,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)
}

Expand Down