Skip to content
Snippets Groups Projects
Commit 6f63ff62 authored by Marie's avatar Marie
Browse files

fix: autocomplete on users being janky

parent fd57c7e2
No related branches found
No related tags found
No related merge requests found
......@@ -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 === '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment