Skip to content

Commit

Permalink
feat(search): linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Dec 14, 2023
1 parent 13f12eb commit 65c2d5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -954,10 +954,11 @@
var args = [].slice.call(arguments, 1, querySplit.length * 2).map(function (x, i) {
return i & 1 ? x : '<mark>' + x + '</mark>'; // eslint-disable-line no-bitwise
});

return args.join('');
}
;
$.each(results, function(index, result) {
$.each(results, function (index, result) {
var $result = $(result),
markedHTML = module.get.choiceText($result)
;
Expand Down
3 changes: 2 additions & 1 deletion src/definitions/modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@
}
if (settings.highlightMatches) {
var results = response[fields.results],
regExpIgnore= settings.ignoreSearchCase ? 'i' : '',
regExpIgnore = settings.ignoreSearchCase ? 'i' : '',
querySplit = module.get.value().split(''),
diacriticReg = settings.ignoreDiacritics ? '[\u0300-\u036F]?' : '',
htmlReg = '(?![^<]*>)',
Expand All @@ -1105,6 +1105,7 @@
var args = [].slice.call(arguments, 1, querySplit.length * 2).map(function (x, i) {
return i & 1 ? x : '<mark>' + x + '</mark>'; // eslint-disable-line no-bitwise
});

return args.join('');
}
;
Expand Down

0 comments on commit 65c2d5d

Please sign in to comment.