Skip to content

Commit

Permalink
Merge pull request #3021 from buildkite/strip-whitespace-on-optional-…
Browse files Browse the repository at this point in the history
…claims

Ensure all string slice args have whitespace cleaned off of each element
  • Loading branch information
moskyb authored Oct 3, 2024
2 parents 3709603 + fe814e2 commit cba314d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cliconfig/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ func (l Loader) normalizeField(fieldName string, normalization string) error {
continue
}

normalized = strings.TrimSpace(normalized)

normalizedSlice = append(normalizedSlice, normalized)
}
}
Expand Down

0 comments on commit cba314d

Please sign in to comment.