fix: make SSH URLs handle usernames other than "git"
Some checks are pending
CI / build (push) Waiting to run
CI / test (built) (push) Blocked by required conditions
CI / test (committed) (push) Blocked by required conditions
CI / commentTestSuiteHelp (push) Blocked by required conditions
CI / package (push) Blocked by required conditions

This commit is contained in:
b12f 2024-12-20 14:36:27 +01:00
parent 7174d368c2
commit 7a37b54f47
Signed by: b12f
GPG key ID: 729956E1124F8F26

View file

@ -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 {