From 41da83a6780f598f312d66d47b386ab4bc2f84f0 Mon Sep 17 00:00:00 2001 From: eternasuno <22316214+eternasuno@users.noreply.github.com> Date: Thu, 4 Jul 2024 18:51:19 +0900 Subject: [PATCH] fix(route/69shu): description is empty (#16080) --- lib/routes/69shu/article.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/routes/69shu/article.ts b/lib/routes/69shu/article.ts index e153292a1..922425332 100644 --- a/lib/routes/69shu/article.ts +++ b/lib/routes/69shu/article.ts @@ -88,9 +88,9 @@ const decrypt = (txt: string, articleid: string, chapterid: string, decryptionMa } return txt + .replaceAll(/\u2003|\n/g, '') .split('

') - .map((line, index, array) => (lineMap[index] ? array[lineMap[index]] : line)) - .slice(1, -1) - .join('

') - .replaceAll(/\u2003|()/g, ''); + .flatMap((line, index, array) => (lineMap[index] ? array[lineMap[index]] : line).split('
')) + .slice(1, -2) + .join('

'); };