fix(ticket-management): 首行三级域路径同改半角 - —— 域=L1-L2-L3(断言 3 同步 split(-);SKILL.md §3.1/§7 同步)

This commit is contained in:
2026-09-22 16:27:48 +08:00
parent 6cd695574b
commit 85ca328690
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ function checksOf(title, body) {
return [
["1 标题主前缀 ∈ 词表", sp.parts.length > 0 && DOMAINS.indexOf(sp.parts[0]) >= 0],
["2 首行含 域=", L.indexOf("域=") >= 0],
["3 标题主域 = 首行 域 的 L1", sp.parts.length > 0 && dom.split("/")[0] === sp.parts[0]],
["3 标题主域 = 首行 域 的 L1", sp.parts.length > 0 && dom.split("-")[0] === sp.parts[0]],
["4 标题闸门 = 首行 闸门=", sp.parts.length < 2 ? (gate === "可开工") : (GATES.indexOf(sp.parts[1]) >= 0 && sp.parts[1] === gate)],
["5 人读部分无本地 / 外部引用", !BAD.some(function (b) { return hp.indexOf(b) >= 0; })],
["6 有引用块 ⇒ 有 ref-owner", body.indexOf("<!--") < 0 ? true : body.indexOf("ref-owner:") >= 0]