Skip to content
Snippets Groups Projects
Commit 0d23e7a2 authored by Marie's avatar Marie
Browse files

fix: autocomplete not showing up if dot in username

parent 3ba54afc
No related branches found
No related tags found
No related merge requests found
......@@ -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 === '') {
......
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