Skip to content

Commit eba490d

Browse files
Update src/gitingest/parse_query.py
Co-authored-by: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com>
1 parent acfd915 commit eba490d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitingest/parse_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _parse_url(url: str) -> dict[str, Any]:
100100
url = url.split(" ")[0]
101101
url = unquote(url) # Decode URL-encoded characters
102102

103-
if not url.startswith("https://") and not url.startswith("http://"):
103+
if not url.startswith(("https://", "http://")):
104104
url = "https://" + url
105105

106106
# Extract domain and path

0 commit comments

Comments
 (0)