Index: whois.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/whois/whois.module,v retrieving revision 1.11 diff -u -r1.11 whois.module --- whois.module 4 Dec 2009 11:08:40 -0000 1.11 +++ whois.module 4 Dec 2009 16:07:16 -0000 @@ -202,7 +236,7 @@ else { $r = "^(?:(?P\w+)://)?"; // e.g. http:// $r .= "(?:(?P\w+):(?P\w+)@)?"; // e.g. username:password@ - $r .= "(?P(?:(?P[\w\.]+)\.)?" . "(?P\w+\.(?P\w+)))"; // e.g. www and example.com + $r .= "(?P(?:(?P[-\w\.]+)\.)?" . "(?P[-\w]+\.(?P\w+)))"; // e.g. www and example.com $r .= "(?::(?P\d+))?"; // e.g. :80 $r .= "(?P[\w/]*/(?P\w+(?:\.\w+)?)?)?"; // e.g. /foo/bar/baz.html $r .= "(?:\?(?P[\w=&]+))?"; // e.g. ?foo=1&bar=2