fix: 无屏蔽词时全屏蔽

This commit is contained in:
shanmite 2022-07-24 14:00:10 +08:00
parent f498ee39b4
commit 1415f18fea

View File

@ -344,7 +344,7 @@ class Monitor extends Searcher {
needTopic = [...new Set(description.match(/(?<=[带加上](?:话题|tag).*)#.+?#|(?<=[带加上])#.+?#(?=话题|tag)/ig) || [])].join(' '), needTopic = [...new Set(description.match(/(?<=[带加上](?:话题|tag).*)#.+?#|(?<=[带加上])#.+?#(?=话题|tag)/ig) || [])].join(' '),
isRelayDynamic = type === 1, isRelayDynamic = type === 1,
has_key_words = key_words.every(it => new RegExp(it).test(description)), 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 = isLottery =
(is_imitator && lottery_info_type === 'uid' && model !== '00') (is_imitator && lottery_info_type === 'uid' && model !== '00')
|| (hasOfficialLottery && model[0] === '1') || (hasOfficialLottery && model[0] === '1')