diff --git a/lib/v2/yahoo/news/index.js b/lib/v2/yahoo/news/index.js index 4e507f931..726ec4298 100644 --- a/lib/v2/yahoo/news/index.js +++ b/lib/v2/yahoo/news/index.js @@ -11,9 +11,7 @@ module.exports = async (ctx) => { const category = ctx.params.category ? ctx.params.category.toLowerCase() : ''; const rssUrl = `https://${region ? `${region}.` : ''}news.yahoo.com/rss/${category}`; const feed = await parser.parseURL(rssUrl); - const filteredItems = feed.items.filter( - (item) => !item.link.includes('promotions') && new URL(item.link).hostname.match(/.*\.yahoo\.com$/) - ); + const filteredItems = feed.items.filter((item) => !item.link.includes('promotions') && new URL(item.link).hostname.match(/.*\.yahoo\.com$/)); const items = await Promise.all( filteredItems.map((item) => ctx.cache.tryGet(item.link, async () => {