tools/web: colon char in URL precedes optional //

This commit is contained in:
nemunaire 2015-10-15 19:26:09 +02:00
parent 55e6550cb1
commit fd99deed1d

View File

@ -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"""