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

This commit is contained in:
Chatnoir Miki 2023-07-03 20:31:31 +08:00 committed by GitHub
parent bc8f058f53
commit bc98ba2aff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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))