Browse Source

[Search] add exactResults on duplicate check

pull/6223/head
Pierrick Prudhomme 6 years ago
parent
commit
884298381e
1 changed files with 3 additions and 2 deletions
  1. 5
      src/definitions/modules/search.js

5
src/definitions/modules/search.js

@ -596,9 +596,10 @@ $.fn.search = function(parameters) {
addResult = function(array, result) { addResult = function(array, result) {
var var
notResult = ($.inArray(result, results) == -1), notResult = ($.inArray(result, results) == -1),
notFuzzyResult = ($.inArray(result, fuzzyResults) == -1)
notFuzzyResult = ($.inArray(result, fuzzyResults) == -1),
notExactResults = ($.inArray(result, exactResults) == -1)
; ;
if(notResult && notFuzzyResult) {
if(notResult && notFuzzyResult && notExactResults) {
array.push(result); array.push(result);
} }
} }

Loading…
Cancel
Save