mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-05 13:53:42 +08:00
fix: fix SensitiveWords load error
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user