From c596dc0dc27b3a36c2b2547f8ff0587d636e7364 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Mon, 27 Sep 2021 16:35:35 +0800 Subject: [PATCH] update --- core/test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/test.go b/core/test.go index b2589e7..04d45de 100644 --- a/core/test.go +++ b/core/test.go @@ -121,14 +121,14 @@ 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) - f.Rules[i] = strings.Replace(f.Rules[i], `(\S+)`, "?", -1) - f.Rules[i] = strings.Replace(f.Rules[i], `[(]`, "(", -1) - f.Rules[i] = strings.Replace(f.Rules[i], `[)]`, ")", -1) - } + // 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) + // f.Rules[i] = strings.Replace(f.Rules[i], `(\S+)`, "?", -1) + // f.Rules[i] = strings.Replace(f.Rules[i], `[(]`, "(", -1) + // f.Rules[i] = strings.Replace(f.Rules[i], `[)]`, ")", -1) + // } ss = append(ss, strings.Join(f.Rules, " ")) } return strings.Join(ss, "\n")