Detect links in profile bios
This commit is contained in:
parent
2b37b6549b
commit
4eb8bc1249
4 changed files with 22 additions and 4 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue