From 00d8e6c6e7eb007b060cb3f15aeaabe013189e5e Mon Sep 17 00:00:00 2001 From: sebseb7 Date: Mon, 4 Aug 2025 10:35:28 +0200 Subject: [PATCH] fix(api): use en dash between hash and message to avoid '-' entity issues --- x.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x.js b/x.js index f238337..46a9455 100644 --- a/x.js +++ b/x.js @@ -236,7 +236,8 @@ function formatCommitMessage(payload) { // backticked hash must use code-escaper rules const hashInline = escapeInlineCode(shortHash); - commitsText += `\nšŸ”§ \`${hashInline}\` - ${escapedMessage}`; + // Replace raw hyphen with EN DASH between hash and message to avoid '-' entity errors + commitsText += `\nšŸ”§ \`${hashInline}\` – ${escapedMessage}`; if (commits.length > 1) { commitsText += ` (${escapeMdV2(author)})`; }