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)