fix: /rsshub/rss title

This commit is contained in:
DIYgod
2019-09-26 14:27:37 +08:00
parent b508e30941
commit ac008efe96
+1 -1
View File
@@ -55,7 +55,7 @@ module.exports = async (ctx) => {
item.find('.header-anchor').remove();
const titleEle = item.prevAll('h2').eq(0);
return {
title: `${titleEle[0].attribs.id} - ${item
title: `${titleEle.text().slice(2)} - ${item
.prevAll('h3')
.eq(0)
.text()