From 7a37b54f47987b157274aaef24a04791b890b3d2 Mon Sep 17 00:00:00 2001 From: b12f Date: Fri, 20 Dec 2024 14:36:27 +0100 Subject: [PATCH] fix: make SSH URLs handle usernames other than "git" --- src/git-config-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git-config-helper.ts b/src/git-config-helper.ts index f5f484b..0220696 100644 --- a/src/git-config-helper.ts +++ b/src/git-config-helper.ts @@ -92,7 +92,7 @@ export class GitConfigHelper { } } - const sshUrlPattern = new RegExp('^git@(.+?):(.+/.+)\\.git$', 'i') + const sshUrlPattern = new RegExp('^.+@(.+?):(.+/.+)\\.git$', 'i') const sshMatch = remoteUrl.match(sshUrlPattern) if (sshMatch) { return {