fix(clustertool): fix git references issues and warn against ARM

This commit is contained in:
Kjeld Schouten
2024-11-03 18:25:37 +01:00
parent 250d3e8adc
commit b5f59a629c
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ func FormatGitURL(input string) string {
}
// Compile a regex to match and replace the URL pattern
re := regexp.MustCompile(`^ssh://git@([^:/]+)([:/])(\w+)/(\w+)\.git$`)
re := regexp.MustCompile(`^ssh://git@([^:/]+)([:/])([\w-]+)/([\w-]+)\.git$`)
matches := re.FindStringSubmatch(input)
if len(matches) == 5 {