fix bug
This commit is contained in:
parent
282e0c26e0
commit
b1ebedd24c
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user