mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-18 00:16:37 +08:00
fix: fix SensitiveWords load error
This commit is contained in:
parent
c7658b70d1
commit
d7e25e1604
@ -23,6 +23,7 @@ func SensitiveWordsToString() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func SensitiveWordsFromString(s string) {
|
func SensitiveWordsFromString(s string) {
|
||||||
|
SensitiveWords = []string{}
|
||||||
sw := strings.Split(s, "\n")
|
sw := strings.Split(s, "\n")
|
||||||
for _, w := range sw {
|
for _, w := range sw {
|
||||||
w = strings.TrimSpace(w)
|
w = strings.TrimSpace(w)
|
||||||
|
Loading…
Reference in New Issue
Block a user