From 874da471d9a9f97cf80ddb450e66a220bcd61740 Mon Sep 17 00:00:00 2001 From: Ethan Shen <42264778+nczitzk@users.noreply.github.com> Date: Tue, 2 Jul 2024 00:17:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E4=B8=AD=E5=9B=BD=E6=8A=95?= =?UTF-8?q?=E8=B5=84=E8=80=85=E7=BD=91=E6=A0=87=E9=A2=98=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=20(#16056)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/investor/index.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/routes/investor/index.ts b/lib/routes/investor/index.ts index ad244a27a..68c4e61b9 100644 --- a/lib/routes/investor/index.ts +++ b/lib/routes/investor/index.ts @@ -81,14 +81,8 @@ export const handler = async (ctx) => { const title = $$('div.contentText h2').text(); const description = $$('div.TRS_Editor').html(); - item.title = title; + item.title = title || item.title; item.description = description; - item.pubDate = parseDate( - $$('span.timeSpan') - .text() - .trim() - .match(/(\d{4}-\d{2}-\d{2})/)?.[1] ?? '' - ); item.author = $$('span.timeSpan') .text() .trim()