pijul_org/pijul

Correct the regex for detecting ssh remotes

By FlorentBecker on March 8, 2019
signed.
BEEdUjoJC47JaXDn39dBVzapMZyVjgyZMSqPpdiRPMkZsdcWcXb9VpEGbaZyNfhjbP2uNYswW7CEYiohYsomFx9H

This patch is in the following branches:

inrepo_type
investigate_conflict
latest
master
reporoot_type
testing
1315
1316

1317
1318
    local_repo_root: Option<&'a Path>,
) -> Option<SshRemote<'a>> {
    let ssh = Regex::new(r"^([^:]*)(:(.*))?$").unwrap();
    let ssh = Regex::new(r"^([^:]*):((.*))?$").unwrap();
    if ssh.is_match(remote_id) {