--- a/whois/whois.py Mon Feb 05 14:40:21 2018 -0500
+++ b/whois/whois.py Mon Feb 05 14:43:20 2018 -0500
@@ -75,7 +75,7 @@
whois server for getting contact details.
"""
nhost = None
- match = re.compile('Domain Name: ' + query + '\s*.*?Whois Server: (.*?)\s', flags=re.IGNORECASE|re.DOTALL).search(buf)
+ match = re.compile('Domain Name: {}\s*.*?Whois Server: (.*?)\s'.format(query), flags=re.IGNORECASE|re.DOTALL).search(buf)
if match:
nhost = match.groups()[0]
# if the whois address is domain.tld/something then