diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-04-24 07:38:46 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2021-04-24 07:38:46 -0400 |
commit | 9a218b27c761daecbfdaddcefaf0393fee8959ad (patch) | |
tree | a2480900c9d40ce04c95e684d698a45e13fcc2c1 /src | |
parent | 62741cc682448f50aaaf5be198d6eeafda37c3d8 (diff) |
Fix Github repo URL regex
Ref #563
Diffstat (limited to 'src')
-rw-r--r-- | src/git_config/git_config_entry.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/git_config/git_config_entry.rs b/src/git_config/git_config_entry.rs index bee64149..bf324ef6 100644 --- a/src/git_config/git_config_entry.rs +++ b/src/git_config/git_config_entry.rs @@ -20,7 +20,8 @@ pub enum GitRemoteRepo { } lazy_static! { - static ref GITHUB_REMOTE_URL: Regex = Regex::new(r"github\.com[:/]([^/]+)/(.+)").unwrap(); + static ref GITHUB_REMOTE_URL: Regex = + Regex::new(r"github\.com[:/]([^/]+)/(.+?)(?:\.git)?$").unwrap(); } impl FromStr for GitRemoteRepo { |