Skip to content

Commit

Permalink
Preventing autocompletion with no match
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaelCarvalho committed Aug 24, 2018
1 parent 651efb8 commit 40a5699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/djlu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '\\$&')
Expand Down

0 comments on commit 40a5699

Please sign in to comment.