Fixes bug
This commit is contained in:
parent
41993b65a9
commit
d6bad5f61c
|
@ -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"
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue