fix: detect rss links with trailing slash (#736)
This commit is contained in:
parent
bc8f058f53
commit
bc98ba2aff
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue