Replace all spaces by empty strings

This commit is contained in:
erik 2024-01-30 15:16:33 +01:00
parent b6728f181c
commit 5bd9a73a81

View file

@ -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 {