diff --git a/site/api/acceptance.mjs b/site/api/acceptance.mjs index 06c07d853..4d406550b 100644 --- a/site/api/acceptance.mjs +++ b/site/api/acceptance.mjs @@ -12,7 +12,7 @@ export function decode(reply) { if (!reply || typeof reply.content !== 'string') throw new Error('the git host reply has no content field'); const b64 = reply.encoding === 'base64' || !reply.encoding; const text = b64 ? Buffer.from(reply.content.replace(/\s+/g, ''), 'base64').toString('utf8') : reply.content; - const registry = JSON.parse(text.replace(/\bBST\b/g, 'UK')); // the zone name is a forbidden string on a served page: the times read UK + const registry = JSON.parse(text.replace(/\bBST\b/g, 'UK').replace(/\bPC [12]\b/g, 'the project’s own rig').replace(/Devnet 3\b/g, 'the earlier devnet')); // the zone name is a forbidden string on a served page: the times read UK if (!registry || !Array.isArray(registry.suites)) throw new Error('the registry has no suites'); return registry; } diff --git a/site/build.mjs b/site/build.mjs index 47735dc41..7c270dccb 100644 --- a/site/build.mjs +++ b/site/build.mjs @@ -427,7 +427,7 @@ for (const [file, active] of PAGES) { if (file === 'acceptance.html' && html.includes('')) { const rp = join(docs, 'plans', 'igneum-2.0-test-registry.json'); // the zone name is a forbidden string on a served page (the identity list): the registry's times read UK here - if (existsSync(rp)) html = inject(html, 'acceptance', renderAcceptance(JSON.parse(readFileSync(rp, 'utf8').replace(/\bBST\b/g, 'UK'))), file); + if (existsSync(rp)) html = inject(html, 'acceptance', renderAcceptance(JSON.parse(readFileSync(rp, 'utf8').replace(/\bBST\b/g, 'UK').replace(/\bPC [12]\b/g, 'the project’s own rig').replace(/Devnet 3\b/g, 'the earlier devnet'))) // the identity list: no zone name, no numbered rig, no numbered devnet on a served page, file); } writeFileSync(p, html); built.push(file);