fix: support nested group paths in SSH Git URLs (#2379)

Co-authored-by: Brian <bmadcode@gmail.com>
This commit is contained in:
hanhnt2-hblab 2026-05-26 02:15:04 +07:00 committed by GitHub
parent 7b31b1accd
commit db744d405f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class CustomModuleManager {
} }
// SSH URL: git@host:owner/repo.git // SSH URL: git@host:owner/repo.git
const sshMatch = trimmed.match(/^git@([^:]+):([^/]+)\/([^/.]+?)(?:\.git)?$/); const sshMatch = trimmed.match(/^git@([^:]+):(.+?)\/([^/.]+?)(?:\.git)?$/);
if (sshMatch) { if (sshMatch) {
const [, host, owner, repo] = sshMatch; const [, host, owner, repo] = sshMatch;
return { return {