mirror of
https://codeberg.org/Cyborus/forgejo-cli.git
synced 2025-03-14 21:25:54 +01:00
Merge pull request 'fix ssh url parsing' (#141) from ssh-parse-mistake into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-cli/pulls/141
This commit is contained in:
commit
b658dbbfa4
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ fn ssh_url_parse(s: &str) -> Result<url::Url, url::ParseError> {
|
|||
|
||||
let auth_end = s.find("@").unwrap_or(0);
|
||||
new_s.push_str(&s[..auth_end]);
|
||||
new_s.push_str(&s[..auth_end].replacen(":", "/", 1));
|
||||
new_s.push_str(&s[auth_end..].replacen(":", "/", 1));
|
||||
url::Url::parse(&new_s)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue