🐛 fix ttr

This commit is contained in:
源文雨 2022-12-03 13:31:59 +08:00
parent 2e538e3905
commit e75fc83412

View File

@ -171,7 +171,7 @@ const (
func match(l []string, seg *jieba.Segmenter, getmsg func(*zero.Ctx) string) zero.Rule {
return func(ctx *zero.Ctx) bool {
if zero.KeywordRule(l...)(ctx) {
if zero.FullMatchRule(l...)(ctx) {
return true
}
return ctxext.JiebaFullMatch(seg, getmsg, l...)(ctx)