Autocomplete exact matches again (#117)

* Fixed duplication kve bug

* Autocomplete exact matches again
This commit is contained in:
Gregory Schier 2017-03-12 19:06:56 -07:00 committed by GitHub
parent 7f21ce37fb
commit b887872478

View File

@ -278,11 +278,6 @@ function matchSegments (listOfThings, segment, type, limit = -1) {
const matchSegment = segment.toLowerCase();
const matchName = name.toLowerCase();
// Throw away exact matches (why would we want to complete those?)
if (matchName === matchSegment) {
continue;
}
// Throw away things that don't match
if (!matchName.includes(matchSegment)) {
continue;