mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
🐛 fix ttr
This commit is contained in:
parent
2e538e3905
commit
e75fc83412
@ -171,7 +171,7 @@ const (
|
|||||||
|
|
||||||
func match(l []string, seg *jieba.Segmenter, getmsg func(*zero.Ctx) string) zero.Rule {
|
func match(l []string, seg *jieba.Segmenter, getmsg func(*zero.Ctx) string) zero.Rule {
|
||||||
return func(ctx *zero.Ctx) bool {
|
return func(ctx *zero.Ctx) bool {
|
||||||
if zero.KeywordRule(l...)(ctx) {
|
if zero.FullMatchRule(l...)(ctx) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return ctxext.JiebaFullMatch(seg, getmsg, l...)(ctx)
|
return ctxext.JiebaFullMatch(seg, getmsg, l...)(ctx)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user