mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Bugfix: Add Trimspace to New Objects (#6226)
This commit is contained in:
@@ -44,3 +44,11 @@ func UniqueFold(s []string) []string {
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
// TrimSpace trims whitespace from each string in a slice.
|
||||
func TrimSpace(s []string) []string {
|
||||
for i, v := range s {
|
||||
s[i] = strings.TrimSpace(v)
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user