fix: optimized urlban logic

This commit is contained in:
Terry Geng
2020-03-12 19:59:23 +08:00
parent a2cb955ed8
commit c1190d6317
2 changed files with 9 additions and 6 deletions

View File

@ -294,6 +294,7 @@ class Dir(object):
# Parse the html from the message to get the URL
def get_url_from_input(string):
string = string.strip()
if string.startswith('http'):
return string
p = re.compile('href="(.+?)"', re.IGNORECASE)