From 120248c775b373ebfb14b2ff5aff03beb60b962d Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Sun, 13 Dec 2020 00:30:40 +0800 Subject: [PATCH] fix: everything changes & xyplorer what's new without newlines (#6424) --- lib/routes/everything/changes.js | 2 +- lib/routes/xyplorer/whatsnew.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/everything/changes.js b/lib/routes/everything/changes.js index 926f8a362..91cebe73b 100644 --- a/lib/routes/everything/changes.js +++ b/lib/routes/everything/changes.js @@ -15,7 +15,7 @@ module.exports = async (ctx) => { item = item.indexOf('\n') === 0 ? item.substr(2, item.length - 2) : item; const title = item.split('\n')[0].split(':'); - const description = item.split(title[1])[1].replace(/\t/g, '
  • ').replace(/\n/g, '
  • '); + const description = ``; return { description, diff --git a/lib/routes/xyplorer/whatsnew.js b/lib/routes/xyplorer/whatsnew.js index f7319e666..cf0001d5b 100644 --- a/lib/routes/xyplorer/whatsnew.js +++ b/lib/routes/xyplorer/whatsnew.js @@ -17,7 +17,7 @@ module.exports = async (ctx) => { item = $(item); return { link: currentUrl, - description: item.html(), + description: ``, title: item.prev().prev().text(), pubDate: date(item.prev().text().replace('released ', '')), };