mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Fix detection of .42 domains
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
dfdfd00b04
commit
7d87d422e1
@ -57,7 +57,7 @@ _octet = r'(?:2(?:[0-4]\d|5[0-5])|1\d\d|\d{1,2})'
|
||||
_ipAddr = r'%s(?:\.%s){3}' % (_octet, _octet)
|
||||
# Base domain regex off RFC 1034 and 1738
|
||||
_label = r'[0-9a-z][-0-9a-z]*[0-9a-z]?'
|
||||
_domain = r'%s(?:\.%s)*\.[a-z][-0-9a-z]*[a-z]?' % (_label, _label)
|
||||
_domain = r'%s(?:\.%s)*\.[0-9a-z][-0-9a-z]+' % (_label, _label)
|
||||
_urlRe = r'(\w+://(?:%s|%s)(?::\d+)?(?:/[^\])>\s]*)?)' % (_domain, _ipAddr)
|
||||
urlRe = re.compile(_urlRe, re.I)
|
||||
_httpUrlRe = r'(https?://(?:%s|%s)(?::\d+)?(?:/[^\])>\s]*)?)' % (_domain,
|
||||
|
Loading…
Reference in New Issue
Block a user