fix it in a better way
This commit is contained in:
parent
64bfb68c22
commit
44379a87f0
|
@ -125,7 +125,8 @@ class Interface:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if kind == 'url' and uri.startswith('www.'):
|
if kind == 'url' and not\
|
||||||
|
(uri.startswith('http://') or uri.startswith('http://')):
|
||||||
uri = 'http://' + uri
|
uri = 'http://' + uri
|
||||||
elif kind == 'mail' and not uri.startswith('mailto:'):
|
elif kind == 'mail' and not uri.startswith('mailto:'):
|
||||||
uri = 'mailto:' + uri
|
uri = 'mailto:' + uri
|
||||||
|
|
Loading…
Reference in New Issue