From 225af04ed8693b4d5b4a8c248c83a7fe0a6cab7e Mon Sep 17 00:00:00 2001 From: Evan Date: Tue, 13 Dec 2022 17:11:34 +0900 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=81=A2=E5=A4=8D=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/wechat/wechat_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/wechat/wechat_handler.go b/handler/wechat/wechat_handler.go index 17f2322..a318881 100644 --- a/handler/wechat/wechat_handler.go +++ b/handler/wechat/wechat_handler.go @@ -65,7 +65,7 @@ func (gmh *GroupMessageHandler) ReplyText(msg *openwechat.Message) error { result = strings.Replace(result, "?", "", -1) } // 微信不支持markdown格式,所以把反引号直接去掉 - if strings.HasPrefix(result, "`") { + if strings.Contains(result, "`") { result = strings.Replace(result, "`", "", -1) }