Match for trailing slash to

Required to ensure no trailing slash is given after mirror list paths
master
Felix Stupp 4 years ago
parent 6b88e803a9
commit b9b774cd62
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -86,7 +86,7 @@ def url_to_regex(url, multi_mapping=multi_mapping):
if not is_multi_mapped: if not is_multi_mapped:
url_pattern = re.escape(url) url_pattern = re.escape(url)
# Prefix protocol again # Prefix protocol again
return r"https?://" + url_pattern return r"https?://" + url_pattern + r"/?"
else: else:
return re.escape(url) return re.escape(url)

Loading…
Cancel
Save