From 204dd1107b5b4ac018aa36f0f4e99dd1fdfd42af Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 21 Jul 2024 23:25:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 639ed288..91f5cc7b 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -183,8 +183,8 @@ function getJkTags(datas){ let str = it.name; let regex = /\[(.*?)\]/; let match = str.match(regex); - if (match) { - let tag = '[' + match[1] + ']'; + if (match && match[1].trim()) { + let tag = '[' + match[1].trim() + ']'; if(tags.indexOf(tag)==-1){ tags.push(tag); }