From e356bb50ad11686138e5ad70f3b23ba58eb99d73 Mon Sep 17 00:00:00 2001 From: Julin Date: Mon, 21 Aug 2023 10:54:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=AE=9A=E6=9E=84=E5=BB=BA=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=A8=A1=E5=BC=8F=EF=BC=88YYYY-MM-DD=20hh:mm=EF=BC=89?= =?UTF-8?q?=EF=BC=8C=E6=8E=92=E9=99=A4=E5=8F=AA=E6=8F=90=E4=BE=9B=E2=80=9C?= =?UTF-8?q?xx=E6=9C=88xx=E6=97=A5=E2=80=9D=E7=9A=84=E6=97=A0=E6=95=88?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/routes/missionboard/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/routes/missionboard/index.js b/web/routes/missionboard/index.js index 0015b71..1a5dfb6 100644 --- a/web/routes/missionboard/index.js +++ b/web/routes/missionboard/index.js @@ -43,7 +43,7 @@ module.exports = { } function extractBuildTime(inputString) { - const pattern = /[(\(]构建时间:(.*?)[\))]/; + const pattern = /[(\(]构建时间[::](\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2})[\))]/; const match = inputString.match(pattern); const buildDate = match ? moment(new Date(match[1])).format('YYYY-MM-DD HH:mm') : null; return buildDate;