Skip to content

Commit

Permalink
Respect whitespaces in wizard StringSliceVar (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbauriedel authored Nov 15, 2024
1 parent e2348ec commit a50400a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/wizard.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (w *Wizard) AddStringSliceVar(callback *[]string, name string, defaultValue
var input string

w.newStringPromptWithDefault(&input, strings.Join(defaultValue, ","), usage, required)
*callback = strings.Split(input, ",")
*callback = strings.Split(strings.ReplaceAll(input, " ", ""), ",")
},
dependency: dependency,
})
Expand Down

0 comments on commit a50400a

Please sign in to comment.