From 39cb8d7b56a087baae12c2a20afc096df581013f Mon Sep 17 00:00:00 2001 From: Keo Date: Sat, 7 Sep 2024 20:23:39 +0800 Subject: [PATCH] fix(route): add center tag to sis001 articles (#16644) --- lib/routes/sis001/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/sis001/common.ts b/lib/routes/sis001/common.ts index 54f9ee328..f3cda1756 100644 --- a/lib/routes/sis001/common.ts +++ b/lib/routes/sis001/common.ts @@ -29,7 +29,7 @@ async function getThread(item) { .html() ?.replaceAll('\n', '') .replaceAll(/\u3000{2}.+?(((?:
){2})|( ))/g, (str) => `

${str.replaceAll('
', '')}

`) - .replaceAll(/

\u3000{6,}(.+?)<\/p>/g, '

$1

') + .replaceAll(/

\u3000{6,}(.+?)<\/p>/g, '

$1

') .replaceAll(' ', '') .replace(/

+

/, '') + ($('.defaultpost .postattachlist').html() ?? ''); return item;