From 691601508881a9669f59099309871e25c2d1a3d3 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 21 Nov 2013 07:23:02 +0100 Subject: [PATCH] Nameserver regex fix --- pythonwhois/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonwhois/parse.py b/pythonwhois/parse.py index bb231cd..6ac0bff 100644 --- a/pythonwhois/parse.py +++ b/pythonwhois/parse.py @@ -65,7 +65,7 @@ grammar = { '\tName:\t\s(?P.+)'], 'whois_server': ['Whois Server:\s?(?P.+)', 'Registrar Whois:\s?(?P.+)'], - 'name_servers': ['Name Server:\s?(?P[^ ]+)', + 'name_servers': ['Name Server:[ ]*(?P[^ ]+)', '(?P[a-z]*d?ns[0-9]+([a-z]{3})?\.([a-z0-9-]+\.)+[a-z0-9]+)', 'nameserver:\s*(?P.+)', 'nserver:\s*(?P[^[\s]+)',