summaryrefslogtreecommitdiffstats
path: root/src/git_config/remote.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git_config/remote.rs')
-rw-r--r--src/git_config/remote.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git_config/remote.rs b/src/git_config/remote.rs
index b4053e7b..ed60e8ad 100644
--- a/src/git_config/remote.rs
+++ b/src/git_config/remote.rs
@@ -37,7 +37,7 @@ lazy_static! {
static ref GITHUB_REMOTE_URL: Regex = Regex::new(
r"(?x)
^
- (?:https://|git@)? # Support both HTTPS and SSH URLs, SSH URLs optionally omitting the git@
+ (?:https://|[^@]+@)? # Support both HTTPS and SSH URLs
github\.com
[:/] # This separator differs between SSH and HTTPS URLs
([^/]+) # Capture the user/org name