fix: detect rss links with trailing slash (#736)

This commit is contained in:
Chatnoir Miki
2023-07-03 13:31:31 +01:00
committed by GitHub
parent bc8f058f53
commit bc98ba2aff
+1 -1
View File
@@ -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))