gearheads
/
mastodon
Archived
2
0
Fork 0

Require at least 2 characters before showing autosuggestions (#5065)

gh/stable
Eugen Rochko 2017-09-24 00:33:17 +02:00 committed by GitHub
parent 6dfeb64326
commit 9c8aad612e
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ const textAtCursorMatchesToken = (str, caretPosition) => {
word = str.slice(left, right + caretPosition);
}
if (!word || word.trim().length < 2 || ['@', ':'].indexOf(word[0]) === -1) {
if (!word || word.trim().length < 3 || ['@', ':'].indexOf(word[0]) === -1) {
return [null, null];
}