mirror of
https://github.com/mudler/luet.git
synced 2025-09-01 07:09:13 +00:00
Use API also when pulling from helpers used in client
This commit is contained in:
@@ -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, "+", "-")
|
||||
}
|
||||
|
Reference in New Issue
Block a user