From bc98ba2aff924daeb1f6f891135d25dcdf2c2169 Mon Sep 17 00:00:00 2001 From: Chatnoir Miki Date: Mon, 3 Jul 2023 20:31:31 +0800 Subject: [PATCH] fix: detect rss links with trailing slash (#736) --- src/js/content/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/content/utils.js b/src/js/content/utils.js index 05bf3ad..6687cec 100644 --- a/src/js/content/utils.js +++ b/src/js/content/utils.js @@ -71,7 +71,7 @@ export function getPageRSS() { const href = aEles[i].getAttribute('href'); if ( - href.match(/\/(feed|rss|atom)(\.(xml|rss|atom))?$/) || + href.match(/\/(feed|rss|atom)(\.(xml|rss|atom))?\/?$/) || (aEles[i].hasAttribute('title') && aEles[i].getAttribute('title').match(check)) || (aEles[i].hasAttribute('class') && aEles[i].getAttribute('class').match(check)) || (aEles[i].innerText && aEles[i].innerText.match(check))