From b38312fecf2d27ceef90e48f868bcb325d455f30 Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Tue, 31 Aug 2021 17:31:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E4=B8=BB=E9=A2=98=E5=9B=9E=E8=BD=A6=E4=B8=8D=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=A0=BC=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/js/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/web_src/js/index.js b/web_src/js/index.js index cad60cdc2..2cc622cc0 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -4113,13 +4113,7 @@ function initTopicbar() { $.fn.form.settings.rules.validateTopic = function (_values, regExp) { const topics = topicDropdown.children('a.ui.label'); const status = - topics.length === 0 || - topics - .last() - .attr('data-value') - .match(regExp) || topics - .last() - .attr('data-value').length <= 35; + topics.length === 0 || (topics.last().attr('data-value').match(regExp) !== null && topics.last().attr('data-value').length <= 35); if (!status) { topics .last()