Skip to content

Commit

Permalink
Don't remove www. prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Jun 27, 2024
1 parent 2b1f823 commit 360d7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get_urltag(string: str) -> dict[str, str | bool] | None:
# URL
string = string if string.startswith("https://") else f"https://{string}"
url = urlparse(string)
hostname = url.hostname.removeprefix("www.") if url.hostname is not None else ""
hostname = url.hostname if url.hostname is not None else ""
path = url.path.strip("/")
repo: str = ""
is_pr: bool = False
Expand Down

0 comments on commit 360d7d9

Please sign in to comment.