改进开源中国路由 (#1395)

This commit is contained in:
tgly307
2019-01-14 14:53:42 +08:00
committed by DIYgod
parent c956c8a0dd
commit 5b92a6fb47
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = async (ctx) => {
const item = {
title: each.find('a', 'h3').attr('title'),
description: each.find('p', '.description').text(),
link: originalUrl,
link: encodeURI(originalUrl),
};
if (/^https:\/\/www.oschina.net\/news\/.*$/.test(originalUrl)) {
const key = 'oschina' + item.link;