From d318c2a5a9d19802c8297fd41943fb8c3a34cb48 Mon Sep 17 00:00:00 2001 From: Chen LangNing Date: Mon, 2 Oct 2023 14:19:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E4=B8=A5=E6=A0=BC=E5=AF=BC=E8=87=B4=E7=9A=84=20@=20=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XMOJ.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMOJ.user.js b/XMOJ.user.js index 238a9a1..892a8c6 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -4077,7 +4077,7 @@ int main() let CardBodyHRElement = document.createElement("hr"); CardBodyElement.appendChild(CardBodyHRElement); let ReplyContentElement = document.createElement("div"); CardBodyElement.appendChild(ReplyContentElement); - ReplyContentElement.innerHTML = PurifyHTML(marked.parse(Replies[i].Content.replaceAll(/@([a-zA-Z0-9]+)/g, `@$1`))); + ReplyContentElement.innerHTML = PurifyHTML(marked.parse(Replies[i].Content)).replaceAll(/@([a-zA-Z0-9]+)/g, `@$1`); if (Replies[i].EditTime != null) { if (Replies[i].EditPerson !== CurrentUsername) { ReplyContentElement.innerHTML += `最后编辑于${GetRelativeTime(Replies[i].EditTime)}`; From 8adfded8bb8d95de7128c9b3579ba706c70102f8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 2 Oct 2023 06:20:25 +0000 Subject: [PATCH 2/2] Update version info to 0.3.193 --- Update.json | 10 ++++++++++ XMOJ.user.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Update.json b/Update.json index a718806..b406290 100644 --- a/Update.json +++ b/Update.json @@ -715,6 +715,16 @@ "Description": "自制图床,讨论区 Ctrl+V 上传图片" } ] + }, + "0.3.193": { + "UpdateDate": 1696227624991, + "Prerelease": true, + "UpdateContents": [ + { + "PR": 586, + "Description": "修复因为严格导致的 @ 不显示" + } + ] } } } \ No newline at end of file diff --git a/XMOJ.user.js b/XMOJ.user.js index 892a8c6..f492346 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name XMOJ -// @version 0.3.192 +// @version 0.3.193 // @description XMOJ增强脚本 // @author @langningchen // @namespace https://github/langningchen