正则匹配加入换行匹配/修正b站消息转发获取BUG

发来的消息带回车时,使用dotall一直匹配下去
原代码中没有e.message,icqq无法获取到转发消息内容

Signed-off-by: lcroof <lcroof@qq.com>
This commit is contained in:
lcroof 2024-03-16 06:17:39 +00:00 committed by Gitee
parent ca46134b81
commit e5bc194051
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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)