Commit 3eb18682 by 1808837298@qq.com

fix: ShouldDisableChannel

parent d71315cf
...@@ -23,6 +23,7 @@ func AutomaticDisableKeywordsFromString(s string) { ...@@ -23,6 +23,7 @@ func AutomaticDisableKeywordsFromString(s string) {
ak := strings.Split(s, "\n") ak := strings.Split(s, "\n")
for _, k := range ak { for _, k := range ak {
k = strings.TrimSpace(k) k = strings.TrimSpace(k)
k = strings.ToLower(k)
if k != "" { if k != "" {
AutomaticDisableKeywords = append(AutomaticDisableKeywords, k) AutomaticDisableKeywords = append(AutomaticDisableKeywords, k)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment