mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-18 01:17:03 +00:00
Replace all spaces by empty strings
This commit is contained in:
parent
b6728f181c
commit
5bd9a73a81
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue