mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 07:03:08 +02:00
fix: autocomplete on users being janky
This commit is contained in:
parent
fd57c7e24c
commit
6f63ff62fc
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ export class Autocomplete {
|
||||||
|
|
||||||
if (isMention && this.onlyType.includes('user')) {
|
if (isMention && this.onlyType.includes('user')) {
|
||||||
const username = text.substring(mentionIndex + 1);
|
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);
|
this.open('user', username);
|
||||||
opened = true;
|
opened = true;
|
||||||
} else if (username === '') {
|
} else if (username === '') {
|
||||||
|
|
Loading…
Reference in a new issue