From 1b8c46cce5ac913db098abaab1d9fbfedb58624d Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 27 Aug 2018 23:02:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=A0=87=E9=A2=98=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC=E5=92=8C=E6=8D=A2=E8=A1=8C=20(#547)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/appstore/update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/appstore/update.js b/routes/appstore/update.js index a30dc4e75..d0fb66f7a 100644 --- a/routes/appstore/update.js +++ b/routes/appstore/update.js @@ -17,14 +17,14 @@ module.exports = async (ctx) => { titleTags.find('span').remove(); const platform = $('.we-localnav__title__product').text(); - const title = `${titleTags.text()} for ${platform === 'App Store' ? 'iOS' : 'macOS'} ${country === 'cn' ? '更新' : 'Update'} `; + const title = `${titleTags.text().trim()} for ${platform === 'App Store' ? 'iOS' : 'macOS'} ${country === 'cn' ? '更新' : 'Update'} `; const item = {}; $('.whats-new').each(function() { const version = $('.whats-new__latest__version') .text() .split(' ')[1]; - item.title = `${titleTags.text()} ${version}`; + item.title = `${titleTags.text().trim()} ${version}`; item.description = $('.whats-new__content .we-truncate').html(); item.link = url; item.guid = id + version;