From 8bf745948c35a348d1f63cbb15fdd652f53ff41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Mon, 11 Mar 2024 12:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E5=AE=8C=E5=96=84=E5=85=AC?= =?UTF-8?q?=E5=91=8A=E6=97=B6=E9=97=B4=E6=AD=A3=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/common/Announcements.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/common/Announcements.vue b/src/pages/common/Announcements.vue index 91de2cda..d965e5e1 100644 --- a/src/pages/common/Announcements.vue +++ b/src/pages/common/Announcements.vue @@ -196,9 +196,11 @@ function getAnnoTime(content: string): string | false { return res?.[0].replace(/.*?(\d\.\d版本期间持续开放)/, "$1") ?? false; } if (content.match(regexes[1])) { - console.log("actPermanently"); - // todo 待处理 - return false; + const res = content.match(regexes[1]); + if (res === null) return false; + const regex2 = /\d\.\d版本更新(?:完成|)后永久开放/; + const res2 = res[0].match(regex2); + return res2 === null ? false : res2[0]; } if (content.match(regexes[2])) { const res = content.match(regexes[2]);