From 0d23e7a27829e3793c591e16aa334d872b2a4e44 Mon Sep 17 00:00:00 2001 From: Marie Date: Tue, 19 Dec 2023 22:03:43 +0100 Subject: [PATCH] fix: autocomplete not showing up if dot in username --- packages/frontend/src/scripts/autocomplete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/autocomplete.ts b/packages/frontend/src/scripts/autocomplete.ts index 0b4ebb4410..0d6756d498 100644 --- a/packages/frontend/src/scripts/autocomplete.ts +++ b/packages/frontend/src/scripts/autocomplete.ts @@ -97,7 +97,7 @@ export class Autocomplete { if (isMention) { const username = text.substring(mentionIndex + 1); - if (username !== '' && username.match(/^[a-zA-Z0-9_]+$/)) { + if (username !== '' && username.match(/^[a-zA-Z0-9_.]+$/)) { this.open('user', username); opened = true; } else if (username === '') {