From 85f27bf4ce5458ab0fa3ad338adc447fccc43e90 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 21 Nov 2013 07:14:04 +0100 Subject: [PATCH] Do not allow whitespace in nameserver entries --- pythonwhois/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonwhois/parse.py b/pythonwhois/parse.py index 513d46f..b598b63 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:\s?(?P[^ ]+)', '(?P[a-z]*d?ns[0-9]+([a-z]{3})?\.([a-z0-9-]+\.)+[a-z0-9]+)', 'nameserver:\s*(?P.+)', 'nserver:\s*(?P[^[\s]+)',