From bffd40cb93072800004b6d5474dbd39a96e821bc Mon Sep 17 00:00:00 2001 From: cnk Date: Sat, 25 Jan 2025 23:00:44 +0800 Subject: [PATCH] fix(routes/nhk/news): fix `\n` not totally replaced to `
` (#18215) --- lib/routes/nhk/news.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/nhk/news.ts b/lib/routes/nhk/news.ts index 172cf15f8f9ebe..7ab05259f44768 100644 --- a/lib/routes/nhk/news.ts +++ b/lib/routes/nhk/news.ts @@ -58,7 +58,7 @@ export const route: Route = { }, ], name: 'WORLD-JAPAN - Top Stories', - maintainers: ['TonyRL', 'pseudoyu'], + maintainers: ['TonyRL', 'pseudoyu', 'cscnk52'], handler, }; @@ -82,7 +82,7 @@ async function handler(ctx) { item.category = Object.values(data.data.categories); item.description = art(path.join(__dirname, 'templates/news.art'), { img: data.data.thumbnails, - description: data.data.detail.replace('\n\n', '

'), + description: data.data.detail.replaceAll('\n\n', '

'), }); delete item.id; return item;