This commit is contained in:
xing 2023-06-13 12:03:52 +08:00
parent 282e0c26e0
commit b1ebedd24c

View File

@ -89,7 +89,7 @@ func (h *Handle) PushComponents(scene, componentType string, components ...Compo
func (h *Handle) PushGroupComponentStr(scene, componentType, name string, order int, strs ...string) { func (h *Handle) PushGroupComponentStr(scene, componentType, name string, order int, strs ...string) {
var component = Components[string]{ var component = Components[string]{
Val: strings.Join(slice.FilterAndMap(strs, func(t string) (string, bool) { Val: strings.Join(slice.FilterAndMap(strs, func(t string) (string, bool) {
t = strings.Trim(t, "\n\r\t\v\x00") t = strings.Trim(t, " \n\r\t\v\x00")
if t == "" { if t == "" {
return "", false return "", false
} }