Fix minor bug in URL detection
This commit is contained in:
parent
819620ddb1
commit
dec3690373
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def parse(match):
|
||||||
except:
|
except:
|
||||||
return "fail"
|
return "fail"
|
||||||
|
|
||||||
@hook.regex(r'(^[^\.])([a-zA-Z]://|www\.)?[^ ]+(\.[a-z]+)(\/)?(.*)')
|
@hook.regex(r'([a-zA-Z]://|www\.)?[^ ]+(\.[a-z]+)(\/)?(.*)')
|
||||||
def urlparser(match, say=None):
|
def urlparser(match, say=None):
|
||||||
url = urlnorm.normalize(match.group().encode('utf-8'))
|
url = urlnorm.normalize(match.group().encode('utf-8'))
|
||||||
if url[:7] != "http://":
|
if url[:7] != "http://":
|
||||||
|
|
Reference in a new issue