From dfe784fffe6a65615ce73974586ee01b1d051aa6 Mon Sep 17 00:00:00 2001 From: TonyRL Date: Wed, 16 Aug 2023 16:05:50 +0000 Subject: [PATCH] fix: rsshub routes update --- lib/v2/rsshub/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/rsshub/routes.js b/lib/v2/rsshub/routes.js index 9a5770dab..a8ec2b72e 100644 --- a/lib/v2/rsshub/routes.js +++ b/lib/v2/rsshub/routes.js @@ -55,7 +55,7 @@ module.exports = async (ctx) => { return { title: `${h2Title.text().trim()} - ${h3Title.text().trim()}`, description: item.html(), - link: `https://docs.rsshub.app/${lang}routes/${type}#${encodeURIComponent(h2Title.find('.hash-link').attr('href') && h3Title.find('.hash-link').attr('href').substring(1))}`, + link: `https://docs.rsshub.app/${lang}routes/${type}#${encodeURIComponent(h2Title.find('.hash-link').attr('href') && h3Title.find('.hash-link').attr('href')?.substring(1))}`, guid: item.attr('id'), }; }),