mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-25 10:14:31 +08:00
feat: polish up the format of nyt (again) (#6046)
This commit is contained in:
@@ -82,10 +82,13 @@ module.exports = async (ctx) => {
|
||||
|
||||
const result = utils.ProcessFeed(response, hasEnVersion);
|
||||
|
||||
// Match 感谢|謝.*?cn.letters@nytimes.com。
|
||||
const ending = /感(谢|謝);.*?cn\.letters@nytimes\.com。/g;
|
||||
|
||||
const matching = '<div class="article-paragraph">';
|
||||
const formatted = '<p></p>' + matching;
|
||||
|
||||
single.description = result.description.split(matching).join(formatted);
|
||||
single.description = result.description.replace(ending, '').split(matching).join(formatted);
|
||||
|
||||
if (hasEnVersion) {
|
||||
single.title = result.title;
|
||||
|
||||
Reference in New Issue
Block a user