koishi-plugin-group-analysis-mx 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils.js +2 -2
- package/package.json +1 -1
package/lib/utils.js
CHANGED
|
@@ -382,8 +382,8 @@ function isJunkMessage(content) {
|
|
|
382
382
|
const s = String(content).trim();
|
|
383
383
|
if (!s)
|
|
384
384
|
return false;
|
|
385
|
-
// 腾讯 QQ
|
|
386
|
-
if (
|
|
385
|
+
// 腾讯 QQ 官方机器人消息签名(任意位置出现都过滤)
|
|
386
|
+
if (/ROBOT1\.0_/.test(s))
|
|
387
387
|
return true;
|
|
388
388
|
// 超长且无空白的 sign/token 串(正常聊天不会这样)
|
|
389
389
|
if (s.length > 150 && !/\s/.test(s) && /^[A-Za-z0-9+/=_.!-]+$/.test(s))
|
package/package.json
CHANGED