Skip to content

Commit 649942a

Browse files
qchappCopilot
andauthored
Update src/ai_agent/agent/utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 28b3b85 commit 649942a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ai_agent/agent/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _coerce_owner_repo_ref(input_str: str) -> Tuple[str, str, Optional[str]]:
101101

102102
# Missing scheme but github domain
103103
if s.startswith("github.com/") or s.startswith("www.github.com/"):
104-
s = "https://" + s.lstrip("www.")
104+
s = "https://" + s.removeprefix("www.")
105105

106106
# Full URL?
107107
try:

0 commit comments

Comments
 (0)