From 52bcabde30849e9fb7973e8e207a76d6c8b0cc33 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:48:42 +0000 Subject: [PATCH] style: auto format --- lib/v2/caixin/weekly.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/v2/caixin/weekly.js b/lib/v2/caixin/weekly.js index 8cf12cfcb..ad66261b4 100644 --- a/lib/v2/caixin/weekly.js +++ b/lib/v2/caixin/weekly.js @@ -27,7 +27,10 @@ module.exports = async (ctx) => { const { data } = await got(item.link); const $ = cheerio.load(data); - item.title = $('head title').text().replace(/_财新周刊频道_财新网$/, '').trim(); + item.title = $('head title') + .text() + .replace(/_财新周刊频道_财新网$/, '') + .trim(); item.pubDate = parseDate( $('.source') .text() @@ -47,7 +50,10 @@ module.exports = async (ctx) => { ); ctx.state.data = { - title: $('head title').text().replace(/_财新周刊频道_财新网$/, '').trim(), + title: $('head title') + .text() + .replace(/_财新周刊频道_财新网$/, '') + .trim(), link, item: items, };