Man, this patch just keeps dragin. make urlparse.py not need a / after aurl
This commit is contained in:
parent
53da740725
commit
5234eac522
3 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ def parse(match):
|
|||
except:
|
||||
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):
|
||||
url = urlnorm.normalize(match.group().encode('utf-8'))
|
||||
if url[:7] != "http://":
|
||||
|
|
Reference in a new issue