This commit is contained in:
syuilo
2018-03-28 13:05:30 +09:00
parent 43f882b778
commit eb443709bf
9 changed files with 88 additions and 8 deletions

View File

@@ -77,7 +77,7 @@ class Autocomplete {
if (mentionIndex != -1 && mentionIndex > emojiIndex) {
const username = text.substr(mentionIndex + 1);
if (username != '' && username.match(/^[a-zA-Z0-9-]+$/)) {
if (username != '' && username.match(/^[a-zA-Z0-9_]+$/)) {
this.open('user', username);
opened = true;
}