diff --git a/scripts/workflow/test-route/test.mjs b/scripts/workflow/test-route/test.mjs index 8fc1966f1b..545db42b75 100644 --- a/scripts/workflow/test-route/test.mjs +++ b/scripts/workflow/test-route/test.mjs @@ -31,7 +31,10 @@ export default async function test({ github, context, core }, baseUrl, routes, n detail += '\n\n'; detail += errInfoList .slice(0, 5) - .map((e) => (e.length > 1000 ? e.slice(0, 1000) + '...' : e).trim()) + .map((e) => { + e = e.replaceAll(/|<\/code>/g, '').trim(); + return e.length > 1000 ? e.slice(0, 1000) + '...' : e; + }) .join('\n'); } }