update
This commit is contained in:
parent
ccbeafc390
commit
3628a4c7f4
|
@ -254,7 +254,7 @@ class PluginsLoader {
|
|||
if (plugin.rule) for (const v of plugin.rule) {
|
||||
/** 判断事件 */
|
||||
if (v.event && !this.filtEvent(e, v)) continue
|
||||
if (!new RegExp.test(e.msg)) continue
|
||||
if (!new RegExp(v.reg).test(e.msg)) continue
|
||||
e.logFnc = `[${plugin.name}][${v.fnc}]`
|
||||
|
||||
if (v.log !== false)
|
||||
|
|
Loading…
Reference in New Issue