Bläddra i källkod

修复 规则存在空导致 标签错误

wcc 2 år sedan
förälder
incheckning
577a9c6a8c
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      proposed_project/util.go

+ 3 - 0
proposed_project/util.go

@@ -37,6 +37,9 @@ func GetRegex(key string) []*RegexpInfo {
 			}
 			infos = append(infos, info)
 		} else {
+			if s == "" {
+				continue
+			}
 			info := &RegexpInfo{
 				keyStr: s,
 				regs:   regexp.MustCompile(".*(?i)" + s + ".*"),