Skip to content

Commit

Permalink
Merge pull request #6223 from prudho/master
Browse files Browse the repository at this point in the history
Fix #3486: [Search] add exactResults on duplicate check
  • Loading branch information
jlukic authored Mar 18, 2018
2 parents 922d997 + 8842983 commit c1f34e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/definitions/modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,10 @@ $.fn.search = function(parameters) {
addResult = function(array, result) {
var
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);
}
}
Expand Down

0 comments on commit c1f34e9

Please sign in to comment.