mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-21 17:56:38 +08:00
Merge branch 'Calcium-Ion:main' into main
This commit is contained in:
commit
492001a8b2
@ -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