Skip to content

Commit c0a0bae

Browse files
committed
Merge branch 'issue-92' of https://github.com/joydeep049/gitingest into issue-92
2 parents 747d1f8 + eba490d commit c0a0bae

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)