正则匹配加入换行匹配/修正b站消息转发获取BUG
发来的消息带回车时,使用dotall一直匹配下去 原代码中没有e.message,icqq无法获取到转发消息内容 Signed-off-by: lcroof <lcroof@qq.com>
This commit is contained in:
parent
ca46134b81
commit
e5bc194051
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue