From 1415f18feae1d3728b22238ab64dc9ccb52a64e1 Mon Sep 17 00:00:00 2001 From: shanmite Date: Sun, 24 Jul 2022 14:00:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0=E5=B1=8F=E8=94=BD=E8=AF=8D?= =?UTF-8?q?=E6=97=B6=E5=85=A8=E5=B1=8F=E8=94=BD?= 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 1529bbd..8c8044e 100644 --- a/lib/core/monitor.js +++ b/lib/core/monitor.js @@ -344,7 +344,7 @@ class Monitor extends Searcher { 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 = new RegExp(blockword.join('|')).test(description + reserve_lottery_text), + isBlock = blockword.length && new RegExp(blockword.join('|')).test(description + reserve_lottery_text), isLottery = (is_imitator && lottery_info_type === 'uid' && model !== '00') || (hasOfficialLottery && model[0] === '1')