🎨 代码格式化

This commit is contained in:
目棃
2024-04-23 19:00:28 +08:00
parent f802ee9a68
commit 065019cdc6
33 changed files with 73 additions and 54 deletions

View File

@@ -188,7 +188,7 @@ function getAnnoTime(content: string): string | false {
/(?:〓(?:活动|折扣)时间〓|祈愿时间|【上架时间】).*?(\d\.\d版本更新后).*?~.*?<t class="t_(?:gl|lc)".*?>(.*?)<\/t>/,
/(?:〓(?:活动|折扣)时间〓|祈愿时间|【上架时间】).*?<t class="t_(?:gl|lc)".*?>(.*?)<\/t>.*?~.*?<t class="t_(?:gl|lc)".*?>(.*?)<\/t>/,
/〓活动时间〓.*?(\d{4}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}).*?(\d\.\d版本结束)/,
/〓更新时间〓.+?<t class=\"t_(?:gl|lc)\".*?>(.*?)&;lt;\/t>/,
/〓更新时间〓.+?<t class="t_(?:gl|lc)".*?>(.*?)&;lt;\/t>/,
];
if (content.match(regexes[0])) {
const res = content.match(regexes[0]);

View File

@@ -278,7 +278,6 @@ async function freshPostData(): Promise<void> {
function freshCurForum(newVal: string): void {
const forum = forumList[curGameLabel.value];
// @ts-ignore
curForum.value = forum[newVal];
}