Fixes bug

This commit is contained in:
Thomas Forgione 2019-06-26 15:09:08 +02:00
parent 41993b65a9
commit d6bad5f61c
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
2 changed files with 3 additions and 1 deletions

2
Cargo.lock generated
View File

@ -1,3 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]] [[package]]
name = "beautylog" name = "beautylog"
version = "0.1.0" version = "0.1.0"

View File

@ -38,7 +38,7 @@ macro_rules! unwrap {
pub fn parse_url(input: &str) -> Result<(String, String, String)> { pub fn parse_url(input: &str) -> Result<(String, String, String)> {
if input.starts_with("http") { if input.starts_with("http") {
parse_http_url(input) parse_http_url(input)
} else if input.starts_with("ssh") { } else if input.starts_with("git@") {
parse_ssh_url(input) parse_ssh_url(input)
} else { } else {
parse_github_url(input) parse_github_url(input)