Pre Merge pull request !154 from Admilk/N/A

This commit is contained in:
Admilk 2024-03-26 04:45:00 +00:00 committed by Gitee
commit 37675976c6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 2 deletions

View File

@ -250,8 +250,7 @@ class PluginsLoader {
if (plugin.rule) for (const v of plugin.rule) {
/** 判断事件 */
if (v.event && !this.filtEvent(e, v)) continue
/** 加入多行匹配符号 */
if (!new RegExp(v.reg, 'sg').test(e.msg)) continue
if (!new RegExp(v.reg).test(e.msg)) continue
e.logFnc = `[${plugin.name}][${v.fnc}]`
if (v.log !== false)