fix it in a better way
This commit is contained in:
parent
64bfb68c22
commit
44379a87f0
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ class Interface:
|
|||
pass
|
||||
|
||||
else:
|
||||
if kind == 'url' and uri.startswith('www.'):
|
||||
if kind == 'url' and not\
|
||||
(uri.startswith('http://') or uri.startswith('http://')):
|
||||
uri = 'http://' + uri
|
||||
elif kind == 'mail' and not uri.startswith('mailto:'):
|
||||
uri = 'mailto:' + uri
|
||||
|
|
Loading…
Add table
Reference in a new issue