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); }