mirror of
				https://github.com/linux-do/new-api.git
				synced 2025-11-04 13:23: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