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

th-downstream
Eugen Rochko 7 years ago committed by GitHub
parent 213b828014
commit 0468f86a8b

@ -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];
}

Loading…
Cancel
Save