改进开源中国路由 (#1395)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user