From 644a6cdcc285ce13babedf64a381b915301c1584 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: Wed, 9 Nov 2022 23:28:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E7=B2=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/manager/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/manager/manager.go b/plugin/manager/manager.go index b64baeef..1a9954f4 100644 --- a/plugin/manager/manager.go +++ b/plugin/manager/manager.go @@ -583,7 +583,7 @@ func init() { // 插件主体 } }) // 设精 - engine.OnRegex(`^\[CQ:reply,id=(\d+)\].*(设置|取消)精华$`, zero.OnlyGroup, zero.AdminPermission).SetBlock(true).Limit(ctxext.LimitByUser).Handle(func(ctx *zero.Ctx) { + engine.OnRegex(`^\[CQ:reply,id=(\d+)\][\s\S]*(设置|取消)精华$`, zero.OnlyGroup, zero.AdminPermission).SetBlock(true).Limit(ctxext.LimitByUser).Handle(func(ctx *zero.Ctx) { essenceID, _ := strconv.ParseInt(ctx.State["regex_matched"].([]string)[1], 10, 64) option := ctx.State["regex_matched"].([]string)[2] var rsp zero.APIResponse