From febaefd8dc3c77c49e2059c17df644ea77a083d6 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 25 Nov 2017 04:30:19 +0300 Subject: [PATCH] don't show autocomplete on numbers --- edit/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/edit.js b/edit/edit.js index 4bf86e99..6d43fafa 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -1073,7 +1073,7 @@ function autocompleteOnTyping(cm, [info], debounced) { debounce(autocompleteOnTyping, 100, cm, [info], true); return; } - if (info.text.last.match(/[-\w!]+$/)) { + if (info.text.last.match(/[-a-z!]+$/i)) { cm.state.autocompletePicked = false; cm.options.hintOptions.completeSingle = false; cm.execCommand('autocomplete');