chore: 修改消息无效附加数据的提示文本

This commit is contained in:
CrescentLeaf
2025-11-17 00:05:10 +08:00
parent 4bf55749bb
commit 51fbdc0f71

View File

@@ -89,7 +89,7 @@ const markedInstance = new marked.Marked({
case "ChatMention":
return `<chat-mention chat-id="${escapeHTML(/^tws:\/\/chat\?id=(.*)/.exec(href)?.[1] || '')}" text="${escapeHTML(/^ChatMention=(.*)/.exec(text)?.[1] || '')}">PH</chat-mention>`
}
return `<chat-text em="true">(不支持的附件语法: ![${text}](${href}))</chat-text>`
return `<chat-text em="true">${ escapeHTML(`[无效数据 (<${text}>=${href})]`) }</chat-text>`
},
}
})