From eba490d384fcabbbb6598963506b2473303cce41 Mon Sep 17 00:00:00 2001 From: Joydeep Tripathy <113792434+joydeep049@users.noreply.github.com> Date: Wed, 1 Jan 2025 23:34:50 +0530 Subject: [PATCH] Update src/gitingest/parse_query.py Co-authored-by: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com> --- src/gitingest/parse_query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitingest/parse_query.py b/src/gitingest/parse_query.py index f21011b..859cafb 100644 --- a/src/gitingest/parse_query.py +++ b/src/gitingest/parse_query.py @@ -100,7 +100,7 @@ def _parse_url(url: str) -> dict[str, Any]: url = url.split(" ")[0] url = unquote(url) # Decode URL-encoded characters - if not url.startswith("https://") and not url.startswith("http://"): + if not url.startswith(("https://", "http://")): url = "https://" + url # Extract domain and path