From 14d778a3ead9072b52307974e3da27dad9475552 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 5 Oct 2021 09:22:18 +0000 Subject: [PATCH] style: auto format --- lib/routes/novel/ptwxz.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/routes/novel/ptwxz.js b/lib/routes/novel/ptwxz.js index 4dcf62c82d..d14f947cf6 100644 --- a/lib/routes/novel/ptwxz.js +++ b/lib/routes/novel/ptwxz.js @@ -27,16 +27,16 @@ module.exports = async (ctx) => { const title = $('span>h1').text(); const chapter_item = $('#content li a') - .map((_, item) => { - item = $(item); - const date = item.attr('title').match(/更新时间:(.*)/)[1]; // "10-04 00:17" - return { - title: item.text(), - link: item.attr('href'), - pubDate: timezone(parseDate(date, 'MM-DD HH:mm'), +8), - }; - }) - .get(); + .map((_, item) => { + item = $(item); + const date = item.attr('title').match(/更新时间:(.*)/)[1]; // "10-04 00:17" + return { + title: item.text(), + link: item.attr('href'), + pubDate: timezone(parseDate(date, 'MM-DD HH:mm'), +8), + }; + }) + .get(); const items = await Promise.all( chapter_item.map((item) => ctx.cache.tryGet(item.link, async () => { @@ -73,4 +73,4 @@ module.exports = async (ctx) => { description: '', item: items, }; -}; \ No newline at end of file +};