From de0c46bc893ef8388fd3e0603b14c4b9076f2d41 Mon Sep 17 00:00:00 2001 From: Aluxes <39981645+AshenAshes@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:14:16 +0800 Subject: [PATCH] fix: #746 --- apps/wiki/Calendar.js | 4 ++-- resources/wiki/calendar.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/wiki/Calendar.js b/apps/wiki/Calendar.js index ed223a54..50f0aa98 100644 --- a/apps/wiki/Calendar.js +++ b/apps/wiki/Calendar.js @@ -71,8 +71,8 @@ let Cal = { if (timeRet && timeRet[1]) { annTime = timeRet[1].split('~') } - if (/\d\.\d版本更新后/.test(content)) { - let vRet = /(\d\.\d)版本更新后/.exec(content) + if (/\d\.\d版本更新(?:完成)?后/.test(content)) { + let vRet = /(\d\.\d)版本更新(?:完成)?后/.exec(content) let vTime = '' if (vRet && vRet[1] && versionTime[vRet[1]]) { vTime = versionTime[vRet[1]] diff --git a/resources/wiki/calendar.html b/resources/wiki/calendar.html index 9330a19f..1e22e569 100644 --- a/resources/wiki/calendar.html +++ b/resources/wiki/calendar.html @@ -30,7 +30,7 @@
- {{char.name.length>=4?char.name:`${char.name}生日`}} + {{char.name?.length>=4?char.name:`${char.name}生日`}}
{{/each}}