diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index bb38a53..09c742b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -78,11 +78,11 @@ body: - id: nodejs_version type: input validations: - required: true + required: false attributes: label: "NodeJs版本" description: | - 在控制台输入 node -v 即可查看版本号 + 若使用源码运行请在控制台输入`node -v`查看版本号。 placeholder: | eg: v16.5.0 diff --git a/lib/Monitor.js b/lib/Monitor.js index fb56492..02bb065 100644 --- a/lib/Monitor.js +++ b/lib/Monitor.js @@ -195,7 +195,7 @@ class Monitor extends Public { , isFollowed = (new RegExp(uid)).test(attentionList) , description = typeof des === 'string' ? des : '' , needAt = /(?:@|艾特)[^@|(艾特)]*?好友/.test(description) - , needTopic = (/(?<=[带加上](?:话题|tag))#.*#/i.exec(description) || [])[0] + , needTopic = [...(new Set(description.match(/(?<=[带加上](?:话题|tag).*)#.+?#/ig) || []))].join(' ') , isRelayDynamic = type === 1 , isTwoLevelDynamic = /\/\/@/.test(description) , has_key_words = key_words.every(it => new RegExp(it).test(description)) diff --git a/main.js b/main.js index c0a65d1..99a54e1 100644 --- a/main.js +++ b/main.js @@ -10,7 +10,8 @@ const metainfo = [ ` __/ | | | `, ` |___/ |_| `, ` `, - ` v2.0.2 by shanmite`, + ` Verison: v2.0.3`, + ` Written by shanmite`, ] /**多账号存储 */ let multiple_account = []; diff --git a/my_config.example.js b/my_config.example.js index 1d2c911..be4a380 100644 --- a/my_config.example.js +++ b/my_config.example.js @@ -225,15 +225,16 @@ module.exports = { /** * 清除动态类型 - | 动态类型 | type值 | - | ---------- | ------ | - | 无 | `0` | - | 转发 | `1` | - | 含图片 | `2` | - | 无图纯文字 | `4` | - | 视频 | `8` | - | 专栏 | `64` | - | 活动 | `2048` | + * + * | 动态类型 | type值 | + * | :------- |:----- | + * | 无 | `0` | + * | 转发 | `1` | + * | 含图片 | `2` | + * | 无图纯文字 | `4` | + * | 视频 | `8` | + * | 活动 | `2048` | + * | 专栏 | `64` | */ clear_dynamic_type: 1 },