fix(FullyAutoAndSemiAutoTools): 修复路径匹配逻辑

- 添加额外条件检查 labelParentName 是否等于 pathingName
- 确保路径匹配时考虑完整的路径名称匹配
- 修复过滤器中路径匹配的逻辑错误
This commit is contained in:
yan
2026-01-29 17:32:48 +08:00
parent 610679f962
commit d1bef9de96

View File

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