From 5bd9a73a81e6f272b10a5f5f0383ef48ea903dc0 Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 30 Jan 2024 15:16:33 +0100 Subject: [PATCH] Replace all spaces by empty strings --- pkg/config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 79447eb..a4a8913 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -59,7 +59,8 @@ func (kv *k8sVersionValue) UnmarshalText(v []byte) error { } func splitCSV(csvStr string) map[string]struct{} { - splitValues := strings.Split(csvStr, ",") + sanitizedValues := strings.ReplaceAll(csvStr, " ", "") + splitValues := strings.Split(sanitizedValues, ",") valuesMap := map[string]struct{}{} for _, kind := range splitValues {