fix: autocomplete on users being janky

This commit is contained in:
Marie 2023-12-25 18:40:49 +01:00
parent fd57c7e24c
commit 6f63ff62fc

View file

@ -101,7 +101,7 @@ export class Autocomplete {
if (isMention && this.onlyType.includes('user')) {
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 === '') {