牛客网全文链接 移除随显示位置变化的param (#1702)

* 修改牛客网帖子内容(description)解析方案

* 牛客网全文链接 删除随位置变化的param

* fix pretty issue 3
This commit is contained in:
Carl Li
2019-03-08 11:17:18 +08:00
committed by DIYgod
parent 3d63f935b3
commit 6775a28011

View File

@@ -26,7 +26,9 @@ module.exports = async (ctx) => {
.replace('\n', ' '),
link: $(this)
.find('div.discuss-main.clearfix a')
.attr('href'),
.attr('href')
.match(/^\/discuss\/[0-9]*/gm)
.toString(),
};
return info;
})