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;