CodeBench: stripaa === marker === file-by-file outputista

This commit is contained in:
2026-04-15 00:28:57 +03:00
parent a3ea0c2fda
commit 6ccf6fb0e1

View File

@@ -398,6 +398,7 @@ async function runPipeline(model, scenario, round = 1) {
let code = fileResp.text
.replace(/^```(?:go|golang)?\s*\n?/m, '').replace(/\n?```\s*$/m, '')
.replace(/^===\s*\S+\s*===\s*\n?/m, '')
.replace(/^(?:Here|Sure|Below|This|The|I )[\s\S]*?(?=package\s)/m, '')
.trim();
@@ -449,6 +450,7 @@ async function runPipeline(model, scenario, round = 1) {
timings.push(fixResp);
let fixed = fixResp.text
.replace(/^```(?:go|golang)?\s*\n?/m, '').replace(/\n?```\s*$/m, '')
.replace(/^===\s*\S+\s*===\s*\n?/m, '')
.replace(/^(?:Here|Sure|Below|This|The|I )[\s\S]*?(?=package\s)/m, '')
.trim();
if (fixed) {