From 40a569929baf06d0a68974f5b48c41c35f4b0c4b Mon Sep 17 00:00:00 2001 From: Micael Carvalho Date: Fri, 24 Aug 2018 16:28:02 +0200 Subject: [PATCH] Preventing autocompletion with no match --- js/djlu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/djlu.js b/js/djlu.js index e39c80f..5ffbbb0 100644 --- a/js/djlu.js +++ b/js/djlu.js @@ -304,7 +304,7 @@ $(document).ready(function() { contains.push(item); } - return beginswith.concat(contains, others); + return beginswith.concat(contains); }, highlighter: function (item) { var query = extractor(this.query).replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&')