From d839e57a3cf19fe709db773b8b8b4446dfb957c3 Mon Sep 17 00:00:00 2001 From: lcroof Date: Sat, 16 Mar 2024 04:31:49 +0000 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=88=99=E5=8C=B9=E9=85=8D=E6=97=B6?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=A4=9A=E8=A1=8C=E5=8C=B9=E9=85=8D=20?= =?UTF-8?q?=E5=8F=91=E6=9D=A5=E7=9A=84=E6=B6=88=E6=81=AF=E5=B8=A6=E5=9B=9E?= =?UTF-8?q?=E8=BD=A6=E6=97=B6=EF=BC=8C=E4=BD=BF=E7=94=A8dotall=E4=B8=80?= =?UTF-8?q?=E7=9B=B4=E5=8C=B9=E9=85=8D=E4=B8=8B=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lcroof --- lib/plugins/loader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/loader.js b/lib/plugins/loader.js index 375cd82..7fdf236 100644 --- a/lib/plugins/loader.js +++ b/lib/plugins/loader.js @@ -250,8 +250,8 @@ class PluginsLoader { if (plugin.rule) for (const v of plugin.rule) { /** 判断事件 */ 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)) continue e.logFnc = `[${plugin.name}][${v.fnc}]` if (v.log !== false)