fix: autocomplete not showing up if dot in username

This commit is contained in:
Marie 2023-12-19 22:03:43 +01:00
parent 3ba54afc72
commit 0d23e7a278

View file

@ -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 === '') {