From e2b173c9d27bd8bc98f0f86f84ff276d377beb87 Mon Sep 17 00:00:00 2001 From: zhullyb Date: Sat, 2 Nov 2024 01:18:55 +0800 Subject: [PATCH] camelCase --- lib/routes/zjut/www/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/zjut/www/index.ts b/lib/routes/zjut/www/index.ts index c9e7b1d2e52b1b..4f4fb3ad1f74d5 100644 --- a/lib/routes/zjut/www/index.ts +++ b/lib/routes/zjut/www/index.ts @@ -61,8 +61,8 @@ async function handler(ctx) { } else if (!link.startsWith('http')) { link = rootUrl.slice(0, -1) + link; } - const date_text = cheerioItem.find('.news_meta').text(); - if (!date_text) { + const dateText = cheerioItem.find('.news_meta').text(); + if (!dateText) { // This should not be included, return an empty item to filter out return { title: '', @@ -70,7 +70,7 @@ async function handler(ctx) { pubDate: Date.now(), }; } - const pubDate = timezone(parseDate(date_text), +8); + const pubDate = timezone(parseDate(dateText), +8); return { title,