From 0ba013a5ea5771c1dc67d2b614972edae28dd0f8 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 8 Oct 2013 23:57:30 +0200 Subject: [PATCH] Improve new nameserver rule --- pythonwhois/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonwhois/__init__.py b/pythonwhois/__init__.py index 9b9231b..d851319 100644 --- a/pythonwhois/__init__.py +++ b/pythonwhois/__init__.py @@ -65,7 +65,7 @@ grammar = { 'name_servers': ['(?P[a-z]*d?ns[0-9]+([a-z]{3})?\.([a-z0-9-]+\.)+[a-z0-9]+)', '(?P[a-z0-9-]+\.d?ns[0-9]*\.([a-z0-9-]+\.)+[a-z0-9]+)', '(?P([a-z0-9-]+\.)+[a-z0-9]+)(\s+([0-9]{1,3}\.){3}[0-9]{1,3})', - 'nserver:\s*(?P.+)\s*[\[]?', + 'nserver:\s*(?P[^[\s]+)', 'DNS[0-9]+:\s*(?P.+)', 'ns[0-9]+:\s*(?P.+)', '[^a-z0-9.-](?Pd?ns\.([a-z0-9-]+\.)+[a-z0-9]+)'],