From 5ae7801086a5650f400f347bc02b8d050a1c4348 Mon Sep 17 00:00:00 2001 From: shanmite Date: Sun, 12 Feb 2023 12:13:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B8=A6=E8=AF=9D=E9=A2=98=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/monitor.js b/lib/core/monitor.js index 7915f6c..d7e62e1 100644 --- a/lib/core/monitor.js +++ b/lib/core/monitor.js @@ -385,7 +385,7 @@ class Monitor extends Searcher { : [m_uid, mIsFollowed], description = des.split(/\/\/@.*?:/)[0], needAt = /(?:@|艾特)[^@|(艾特)]*?好友/.test(description), - needTopic = [...new Set(description.match(/(?<=[带加上](?:话题|tag).*)#.+?#|(?<=[带加上])#.+?#(?=话题|tag)/ig) || [])].join(' '), + needTopic = [...new Set(description.match(/(?<=[带加]上?(?:话题|tag).*)#.+?#|(?<=[带加])上?#.+?#(?=话题|tag)/ig) || [])].join(' '), isRelayDynamic = type === 1, has_key_words = key_words.every(it => new RegExp(it).test(description)), isBlock = blockword.length && new RegExp(blockword.join('|')).test(description + reserve_lottery_text),