Skip to content
Snippets Groups Projects
Commit 9c8aad61 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

parent 6dfeb643
No related branches found
No related tags found
No related merge requests found
......@@ -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];
}
......
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