From 8650f7f979c769f5dc0e906e1f4d64da580783c7 Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Wed, 12 Jan 2022 01:23:59 -0300 Subject: [PATCH] Make sure the link contains :// --- scripts/validate/links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate/links.py b/scripts/validate/links.py index ad73e608..5de8b334 100644 --- a/scripts/validate/links.py +++ b/scripts/validate/links.py @@ -73,7 +73,7 @@ def fake_user_agent() -> str: def get_host_from_link(link: str) -> str: - host = link.split('://', 1)[1] + host = link.split('://', 1)[1] if '://' in link else link # Remove routes, arguments and anchors if '/' in host: