Detect links in profile bios

This commit is contained in:
Paul Frazee 2022-11-23 14:53:33 -06:00
parent 2b37b6549b
commit 4eb8bc1249
4 changed files with 22 additions and 4 deletions

View file

@ -69,6 +69,8 @@ export function extractEntities(
while ((match = re.exec(text))) {
if (knownHandles && !knownHandles.has(match[3])) {
continue // not a known handle
} else if (!match[3].includes('.')) {
continue // probably not a handle
}
ents.push({
type: 'mention',