mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-28 05:29:52 +08:00
fix(FullyAutoAndSemiAutoTools): 修复路径匹配逻辑
- 添加额外条件检查 labelParentName 是否等于 pathingName - 确保路径匹配时考虑完整的路径名称匹配 - 修复过滤器中路径匹配的逻辑错误
This commit is contained in:
@@ -690,7 +690,7 @@ async function initRun(config_run) {
|
||||
const filter = PATH_JSON_LIST.filter(item => item.children.length === 0);
|
||||
await debugKey(`log-filtermatchedPaths.json`, JSON.stringify(filter))
|
||||
let matchedPaths = filter.filter(item => {
|
||||
const hitParent = item.fullPathNames.includes(labelParentName);
|
||||
const hitParent = item.fullPathNames.includes(labelParentName)||labelParentName===`${pathingName}`;
|
||||
const hitOption = selectedOptions.some(opt =>
|
||||
item.fullPathNames.some(name => name.includes(opt))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user