From 9d2f3c84b192ab9129bb46bb99c4cfc031ae0943 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 10 Dec 2025 11:13:34 -0500 Subject: [PATCH] it worked for me --- scripts/generateReport.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/generateReport.ts b/scripts/generateReport.ts index 56c0041f6..d6373e99f 100644 --- a/scripts/generateReport.ts +++ b/scripts/generateReport.ts @@ -87,6 +87,10 @@ const IGNORED_DISCORD_ERRORS = [ function toCodeBlock(s: string, indentation = 0, isDiscord = false) { s = s.replace(/```/g, "`\u200B`\u200B`"); + s = s.replace(/\\x([0-9A-Fa-f]{2})/g, (_, hex) => + String.fromCharCode(parseInt(hex, 16)) + ); + const indentationStr = " ".repeat(!isDiscord ? indentation : 0); const content = s.split("\n").map(s => indentationStr + s).join("\n");