Skip to content

Commit

Permalink
style: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 5, 2024
1 parent acfcd0c commit 52bcabd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/v2/caixin/weekly.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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,
};
Expand Down

0 comments on commit 52bcabd

Please sign in to comment.