21 строка
341 Б
Go
21 строка
341 Б
Go
package main
|
|
|
|
import "strings"
|
|
|
|
func isBlackListed(s string) bool {
|
|
for _, b := range *blockedList_case.GetList() {
|
|
if strings.Contains(s, b) {
|
|
return true
|
|
}
|
|
}
|
|
|
|
s_low := strings.ToLower(s)
|
|
for _, b := range *blockedList.GetList() {
|
|
b = strings.ToLower(b)
|
|
if strings.Contains(s_low, b) {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|