From 9927a192d2ce99dae7dbddc3ba806c090ea561d0 Mon Sep 17 00:00:00 2001 From: wuyang6 Date: Mon, 9 Nov 2026 10:59:47 +0800 Subject: [PATCH] Keep publication boundary checks outside the public source --- validate.mjs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/validate.mjs b/validate.mjs index f0d4a83..8acdfe6 100644 --- a/validate.mjs +++ b/validate.mjs @@ -7,18 +7,9 @@ assert.equal(new Set(ids).size, ids.length, "HTML IDs must be unique"); for (const match of html.matchAll(/href="#([^"]+)"/g)) { assert.ok(ids.includes(match[1]), `Missing anchor ${match[1]}`); } -for (const pattern of [ - /\/Users\//, - /git\.n\.xiaomi/, - /100\.94\./, - /human-authorization/, - /Bearer\s+[A-Za-z0-9]/, -]) { - assert.ok(!pattern.test(html), `Private content matched ${pattern}`); -} assert.ok(html.includes("说明性模型")); assert.ok(html.includes("来源报告值")); assert.ok(html.includes("2026 年 11 月 9 日")); console.log( - `Validated ${ids.length} unique anchors, public-content boundaries and evidence labels.`, + `Validated ${ids.length} unique anchors and evidence labels.`, );