From 7388b4e07a0f9e2a41906b9d2e9f6afe174c2be3 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 20 Jul 2024 21:09:05 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 1a53d9a4..41269534 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -184,8 +184,9 @@ function getJkTags(datas){ let regex = /\[(.*?)\]/; let match = str.match(regex); if (match) { - if(tags.indexOf(match[1])==-1){ - tags.push(match[1]); + let tag = '[' + match[1] + ']'; + if(tags.indexOf(tag)==-1){ + tags.push(tag); } } })