|
@ -43,7 +43,7 @@ module.exports = { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function extractBuildTime(inputString) { |
|
|
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 match = inputString.match(pattern); |
|
|
const buildDate = match ? moment(new Date(match[1])).format('YYYY-MM-DD HH:mm') : null; |
|
|
const buildDate = match ? moment(new Date(match[1])).format('YYYY-MM-DD HH:mm') : null; |
|
|
return buildDate; |
|
|
return buildDate; |
|
|