tools/web: colon char in URL precedes optional //
This commit is contained in:
parent
55e6550cb1
commit
fd99deed1d
@ -29,7 +29,7 @@ def isURL(url):
|
|||||||
|
|
||||||
def _getNormalizedURL(url):
|
def _getNormalizedURL(url):
|
||||||
"""Return a light normalized form for the given URL"""
|
"""Return a light normalized form for the given URL"""
|
||||||
return url if "//" in url else "//" + url
|
return url if "//" in url or ":" in url else "//" + url
|
||||||
|
|
||||||
def getNormalizedURL(url):
|
def getNormalizedURL(url):
|
||||||
"""Return a normalized form for the given URL"""
|
"""Return a normalized form for the given URL"""
|
||||||
|
Loading…
Reference in New Issue
Block a user