From 8b2481a14d79b387eab648869daf7a38a7407f37 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Mon, 27 Sep 2021 11:49:08 +0800 Subject: [PATCH] update --- core/test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/test.go b/core/test.go index c0b3d94..8e5acf6 100644 --- a/core/test.go +++ b/core/test.go @@ -125,6 +125,8 @@ func initSys() { 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, " ")) }