From 51298203ca92ebbf0490ed1fd8da49e2ef9ecd36 Mon Sep 17 00:00:00 2001 From: Chenyang Shi Date: Wed, 17 Apr 2019 11:58:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=20segmentfault=E5=9B=BE=E7=89=87=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=20(#1938)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/segmentfault/channel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routes/segmentfault/channel.js b/lib/routes/segmentfault/channel.js index f4fcfb0827..ecd8035fc2 100644 --- a/lib/routes/segmentfault/channel.js +++ b/lib/routes/segmentfault/channel.js @@ -75,6 +75,7 @@ module.exports = async (ctx) => { // 文章 description = $('div.article.fmt.article__content') .html() + .replace(/data-src="/g, 'src="https://segmentfault.com') .trim(); const date_v = $('div.article__authorright > span') .text()