From 19d499b66dfb3c05ef9be089eae046593ad79acd Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Mon, 27 Sep 2021 16:15:54 +0800 Subject: [PATCH] update --- core/test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/test.go b/core/test.go index 8e5acf6..b2589e7 100644 --- a/core/test.go +++ b/core/test.go @@ -121,6 +121,7 @@ func initSys() { s.Disappear() ss := []string{} for _, f := range functions { + f := f for i := range f.Rules { f.Rules[i] = strings.Trim(f.Rules[i], "^$") f.Rules[i] = strings.Replace(f.Rules[i], `\s+`, " ", -1)