[Sync] Token is_url changed: match whole string as a url

This commit is contained in:
Roman Timashev committed 2017-10-28 15:48:34 +03:00
1 parent ec73ad0ef2
commit c3514ae818
1 file changed
+1 -5
+1 -5
View File
@@ -184,11 +184,7 @@ def markdown_to_html(text):
def is_url(sample: str):
link = parse_link(sample)
if not link:
return False
url = link['url']
url = urlparse(sample)
return url.scheme and url.netloc