From 4eb8bc1249ccf6afaa0c77695057a13379cf1aa1 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 23 Nov 2022 14:53:33 -0600 Subject: Detect links in profile bios --- src/lib/strings.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/strings.ts') diff --git a/src/lib/strings.ts b/src/lib/strings.ts index f884cc86c..480dfdcc3 100644 --- a/src/lib/strings.ts +++ b/src/lib/strings.ts @@ -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', -- cgit 1.4.1