Explorar el Código

fix: fix SensitiveWords load error

CaIon hace 2 años
padre
commit
d7e25e1604
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      constant/sensitive.go

+ 1 - 0
constant/sensitive.go

@@ -23,6 +23,7 @@ func SensitiveWordsToString() string {
 }
 
 func SensitiveWordsFromString(s string) {
+	SensitiveWords = []string{}
 	sw := strings.Split(s, "\n")
 	for _, w := range sw {
 		w = strings.TrimSpace(w)