Don't prepend to services that have schemes with '//' (#925)

pull/927/head
Charles Zawacki 1 year ago committed by GitHub
parent 2827a4ef47
commit cec10e81d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -171,6 +171,9 @@ def get_site_alt(link: str) -> str:
link = '//'.join(link.split('//')[1:])
for prefix in SKIP_PREFIX:
if parsed_alt.scheme:
link = link.replace(prefix, '')
else:
link = link.replace(prefix, '//')
break

Loading…
Cancel
Save