From 5173275a92687a5757572a5961440dfbbacfb3c6 Mon Sep 17 00:00:00 2001 From: pllx Date: Wed, 29 Apr 2026 15:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=B8=B8=E6=88=8F=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E5=8E=9F=E5=A7=8B=E6=AD=A3=E6=96=87=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/chat-room/message-renderer.js | 24 ---------------------- 1 file changed, 24 deletions(-) diff --git a/resources/js/chat-room/message-renderer.js b/resources/js/chat-room/message-renderer.js index 0da30d6..0765efb 100644 --- a/resources/js/chat-room/message-renderer.js +++ b/resources/js/chat-room/message-renderer.js @@ -314,9 +314,6 @@ function extractSystemGameCardSummary(content, meta) { return normalizedContent .replace(/^[🎲🎉]+\s*/u, "") .replace(/^【百家乐】/u, "") - .replace(/^第\s*#?\d+\s*局开奖!?\s*/u, "开奖:") - .replace(/总点\s*(\d+)\s*→\s*/u, "$1点 · ") - .replace(/本局无人获奖。?/u, "无人获奖") .replace(/\s+/gu, " ") .trim(); } @@ -329,37 +326,16 @@ function extractSystemGameCardSummary(content, meta) { } if (meta.label === "赛马") { - if (normalizedContent.startsWith("🐎 开赛:")) { - return normalizedContent.replace(/^[🐎]+\s*/u, "").trim(); - } - - if (normalizedContent.startsWith("🏇 比赛开始:")) { - return normalizedContent.replace(/^[🏇]+\s*/u, "").trim(); - } - - if (normalizedContent.startsWith("🏆 冠军:")) { - return normalizedContent.replace(/^[🏆]+\s*/u, "").trim(); - } - return normalizedContent .replace(/^[🐎🏇🏆]+\s*/u, "") .replace(/^【赛马】/u, "") - .replace(/^第\s*#?\d+\s*场开始!?\s*/u, "开赛:") - .replace(/^第\s*#?\d+\s*场押注截止!?\s*/u, "比赛开始:") - .replace(/^第\s*#?\d+\s*场结束!?\s*/u, "冠军:") - .replace(/马匹已进入跑道,比赛开始!?/u, "比赛开始") .trim(); } if (meta.label === "双色球彩票") { - if (normalizedContent.includes("超级期")) { - return normalizedContent.replace(/^[🎊🎟️]+\s*/u, "").trim(); - } - return normalizedContent .replace(/^[🎟️🎊]+\s*/u, "") .replace(/^【双色球[^】]*】/u, "") - .replace(/^(\d+\s*期:)/u, "开奖:$1") .trim(); }