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