Exclude trimmed Twitter links

This commit is contained in:
shinigami-eyes 2019-07-28 08:01:17 +02:00
parent c4fb75963f
commit 844f9cdedb

View File

@ -374,7 +374,7 @@ function getIdentifierFromElementImpl(element: HTMLAnchorElement): string {
if (title && (title.startsWith('http://') || title.startsWith('https://')))
return getIdentifier(title);
const content = element.textContent;
if (!content.includes(' ') && content.includes('.'))
if (!content.includes(' ') && content.includes('.') && !content.includes('…'))
return getIdentifier('http://' + content);
}
} else if (domainIs(hostname, 'wikipedia.org')) {