From d1b7df10bdb4881e5716ade5a4204923ab6ef110 Mon Sep 17 00:00:00 2001 From: Admilk <13205155+adrae@user.noreply.gitee.com> Date: Tue, 26 Mar 2024 04:35:29 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=AD=A3=E5=88=99g=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E5=8C=B9=E9=85=8D=20=E8=A6=81=E5=8A=A0=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E5=8C=B9=E9=85=8D=E4=BD=A0=E5=8F=AF=E4=BB=A5=E5=9C=A8?= =?UTF-8?q?=E4=BD=A0=E6=8F=92=E4=BB=B6=E8=87=AA=E5=B7=B1=E7=9A=84=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E9=87=8C=E9=9D=A2=E5=8A=A0=EF=BC=8C=E5=8A=A0=E4=B8=AA?= =?UTF-8?q?=E5=A4=9A=E8=A1=8C=E8=83=BD=E7=90=86=E8=A7=A3=EF=BC=8C=E4=B8=BA?= =?UTF-8?q?=E4=BB=80=E4=B9=88=E8=A6=81=E5=8A=A0g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Admilk <13205155+adrae@user.noreply.gitee.com> --- lib/plugins/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/loader.js b/lib/plugins/loader.js index e92168d..6341513 100644 --- a/lib/plugins/loader.js +++ b/lib/plugins/loader.js @@ -251,7 +251,7 @@ class PluginsLoader { /** 判断事件 */ if (v.event && !this.filtEvent(e, v)) continue /** 加入多行匹配符号 */ - if (!new RegExp(v.reg, 'sg').test(e.msg)) continue + if (!new RegExp(v.reg, 's').test(e.msg)) continue e.logFnc = `[${plugin.name}][${v.fnc}]` if (v.log !== false)