fix(api): use en dash between hash and message to avoid '-' entity issues
This commit is contained in:
3
x.js
3
x.js
@@ -236,7 +236,8 @@ function formatCommitMessage(payload) {
|
|||||||
// backticked hash must use code-escaper rules
|
// backticked hash must use code-escaper rules
|
||||||
const hashInline = escapeInlineCode(shortHash);
|
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) {
|
if (commits.length > 1) {
|
||||||
commitsText += ` (${escapeMdV2(author)})`;
|
commitsText += ` (${escapeMdV2(author)})`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user