add revue.email to the revue newsletter attribute selectors

This commit is contained in:
Hongbo Wu 2022-07-18 10:44:39 +08:00
parent 345c020dea
commit 65f28fe708

View file

@ -444,7 +444,10 @@ export const isProbablyNewsletter = async (html: string): Promise<boolean> => {
}
// Check if this is a newsletter from revue
if (dom.querySelectorAll('img[src*="getrevue.co"]').length > 0) {
if (
dom.querySelectorAll('img[src*="getrevue.co"], img[src*="revue.email"]')
.length > 0
) {
const getrevueUrl = revueNewsletterHref(dom)
if (getrevueUrl) {
return true