fix(filter): TrimSpace on input

This commit is contained in:
Maas Lalani 2022-07-30 16:50:28 -04:00
parent 66993d8ef1
commit c9caec2c62
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -27,7 +27,7 @@ func (o Options) Run() error {
input, _ := stdin.Read()
var choices []string
if input != "" {
choices = strings.Split(input, "\n")
choices = strings.Split(strings.TrimSpace(input), "\n")
} else {
choices = files.List()
}