From a5759fa57bfa1ec50c3a085925ed250f967d8afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E9=B8=AD=E8=9B=8B?= Date: Fri, 1 Nov 2024 23:47:27 +0800 Subject: [PATCH] skip @ --- build/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.js b/build/build.js index 445e634af..09727981a 100644 --- a/build/build.js +++ b/build/build.js @@ -56,7 +56,7 @@ function extractInfoFromJSFolder(folderPath) { function extractInfoFromPathingFile(filePath, parentFolders) { const content = JSON.parse(fs.readFileSync(filePath, 'utf8')); let tags = parentFolders.slice(2) // 从第三个元素开始,跳过 'pathing' 和下一级目录 - .map(tag => tag.split('@')[0]) // 取@符号前面的数据 + .filter(tag => !tag.includes('@')) // 跳过包含 @ 的标签 .filter((tag, index, self) => self.indexOf(tag) === index); // 去重 // 检查positions数组中是否存在特定动作