logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 9c8aad612e09dbd45ea3d0df8a349cd4ce03b5e9
parent: 6dfeb64326336dafb3e4f1a8fc38ba670be2eba3
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Sun, 24 Sep 2017 00:33:17 +0200

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


Diffstat:

Mapp/javascript/mastodon/components/autosuggest_textarea.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/components/autosuggest_textarea.js b/app/javascript/mastodon/components/autosuggest_textarea.js @@ -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]; }