mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 21:18:57 +08:00
chore(deps-dev): bump prettier from 1.19.1 to 2.0.2
This commit is contained in:
@@ -15,9 +15,7 @@ const getDeadlineStr = ($, countDownNodeSelector) => {
|
||||
const index = args[args.length - 2];
|
||||
return index === 10 ? ' ' : index < 10 ? '-' : ':';
|
||||
});
|
||||
deadlineStr = `截至日期: ${dayJs(dateStr)
|
||||
.locale('zh-cn')
|
||||
.format('YYYY-MM-DD HH:mm:ss')}`;
|
||||
deadlineStr = `截至日期: ${dayJs(dateStr).locale('zh-cn').format('YYYY-MM-DD HH:mm:ss')}`;
|
||||
}
|
||||
return deadlineStr;
|
||||
};
|
||||
@@ -33,9 +31,7 @@ const parseListItem = ($, listSelector) =>
|
||||
const pubDate = new Date(pubDateStr).toUTCString();
|
||||
const thumbnail = $item('.posts-default-img img').attr('data-original');
|
||||
const deadlineStr = getDeadlineStr($item, '.countDownCont');
|
||||
const digest = $item('.posts-default-content > .posts-text')
|
||||
.text()
|
||||
.trim();
|
||||
const digest = $item('.posts-default-content > .posts-text').text().trim();
|
||||
return {
|
||||
title,
|
||||
link,
|
||||
|
||||
Reference in New Issue
Block a user