From e5bc1940517282b229fa04e945ad1ec7a844578b Mon Sep 17 00:00:00 2001 From: lcroof Date: Sat, 16 Mar 2024 06:17:39 +0000 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=88=99=E5=8C=B9=E9=85=8D=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E6=8D=A2=E8=A1=8C=E5=8C=B9=E9=85=8D/=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3b=E7=AB=99=E6=B6=88=E6=81=AF=E8=BD=AC=E5=8F=91?= =?UTF-8?q?=E8=8E=B7=E5=8F=96BUG=20=E5=8F=91=E6=9D=A5=E7=9A=84=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=B8=A6=E5=9B=9E=E8=BD=A6=E6=97=B6=EF=BC=8C=E4=BD=BF?= =?UTF-8?q?=E7=94=A8dotall=E4=B8=80=E7=9B=B4=E5=8C=B9=E9=85=8D=E4=B8=8B?= =?UTF-8?q?=E5=8E=BB=20=E5=8E=9F=E4=BB=A3=E7=A0=81=E4=B8=AD=E6=B2=A1?= =?UTF-8?q?=E6=9C=89e.message=EF=BC=8Cicqq=E6=97=A0=E6=B3=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=88=B0=E8=BD=AC=E5=8F=91=E6=B6=88=E6=81=AF=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lcroof --- 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 375cd82..1955499 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).test(e.msg)) continue + if (!new RegExp(v.reg, 'sg').test(e.msg || e.message?.[0]?.data)) continue e.logFnc = `[${plugin.name}][${v.fnc}]` if (v.log !== false)