Files
onexbet/handball.go
2026-07-21 03:55:57 +03:00

33 lines
534 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package onexbet
import "strings"
var (
bannedHandballChamps = []string{
"Alternative Matches",
"Element League",
"Niko Cup",
"Avalanche Сup",
}
bannedHandballPrefixes = []string{
"PRO League",
}
)
func HandballChampFilter(champName string) (_ bool) {
for _, bannedChampName := range bannedHandballChamps {
if strings.Contains(champName, bannedChampName) {
return
}
}
for _, bannedPrefix := range bannedHandballPrefixes {
if strings.HasPrefix(champName, bannedPrefix) {
return
}
}
return true
}