Use API also when pulling from helpers used in client

This commit is contained in:
Ettore Di Giacinto
2021-10-24 00:57:50 +02:00
parent ad489c2157
commit ebbb3aad27
17 changed files with 113 additions and 233 deletions

View File

@@ -17,8 +17,9 @@
package helpers
import (
"github.com/asaskevich/govalidator"
"strings"
"github.com/asaskevich/govalidator"
)
func StripRegistryFromImage(image string) string {
@@ -28,3 +29,7 @@ func StripRegistryFromImage(image string) string {
}
return image
}
func SanitizeImageString(s string) string {
return strings.ReplaceAll(s, "+", "-")
}