From e75fc8341243c58a301d452b6bd140b9927c290f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 3 Dec 2022 13:31:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20ttr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/thesaurus/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/thesaurus/chat.go b/plugin/thesaurus/chat.go index fbfd0c2f..dca4bdc4 100644 --- a/plugin/thesaurus/chat.go +++ b/plugin/thesaurus/chat.go @@ -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)