From 4b19e9025ee872dc3a2d60823b4455acf27cbe49 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 21 Nov 2013 07:20:35 +0100 Subject: [PATCH] Rough fix for .museum e-mail address detection --- pythonwhois/parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonwhois/parse.py b/pythonwhois/parse.py index 9ce6a65..bb231cd 100644 --- a/pythonwhois/parse.py +++ b/pythonwhois/parse.py @@ -75,8 +75,8 @@ grammar = { '(?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})', '[^a-z0-9.-](?Pd?ns\.([a-z0-9-]+\.)+[a-z0-9]+)'], - 'emails': ['(?P[\w.-]+@[\w.-]+\.[\w]{2,4})', - '(?P[\w.-]+\sAT\s[\w.-]+\sDOT\s[\w]{2,4})'] + 'emails': ['(?P[\w.-]+@[\w.-]+\.[\w]{2,6})', # Really need to fix this, much longer TLDs now exist... + '(?P[\w.-]+\sAT\s[\w.-]+\sDOT\s[\w]{2,6})'] }, "_dateformats": ( '(?P[0-9]{1,2})[./ -](?PJan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[./ -](?P[0-9]{4}|[0-9]{2})'