Fix nameserver regex again to make sure all nameserver-like hostnames match

master
Sven Slootweg 12 years ago
parent 7924e56e82
commit d49d12e76e

@ -41,7 +41,7 @@ grammar = {
'Record maintained by:\s?(?P<val>.+)',
'Registration Service Provided By:\s?(?P<val>.+)'],
'whois_server': ['Registrar Whois:\s?(?P<val>.+)'],
'name_servers': ['(?P<val>[a-z]+d?ns[0-9]+\.([a-z0-9-]+\.)+[a-z0-9]+)',
'name_servers': ['(?P<val>[a-z]*d?ns[0-9]+\.([a-z0-9-]+\.)+[a-z0-9]+)',
'(?P<val>[a-z0-9-]+\.d?ns[0-9]*\.([a-z0-9-]+\.)+[a-z0-9]+)',
'(?P<val>([a-z0-9-]+\.)+[a-z0-9]+)(\s+([0-9]{1,3}\.){3}[0-9]{1,3})'],
'emails': ['(?P<val>[\w.-]+@[\w.-]+\.[\w]{2,4})']

Loading…
Cancel
Save