mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +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) {
|
||||
SensitiveWords = []string{}
|
||||
sw := strings.Split(s, "\n")
|
||||
for _, w := range sw {
|
||||
w = strings.TrimSpace(w)
|
||||
|
Loading…
Reference in New Issue
Block a user