remove quotes on both ends

v1.18.x
barisusakli 9 years ago
parent 2fef7acf4b
commit 797b7f2ec1

@ -113,15 +113,13 @@ define('forum/search', ['search', 'autocomplete'], function(searchModule, autoco
}
}
function highlightMatches(searchQuery) {
if (!searchQuery) {
return;
}
try {
var regexStr = searchQuery.trim().split(' ').join('|');
var regexStr = searchQuery.replace(/^"/, '').replace(/"$/, '').trim().split(' ').join('|');
var regex = new RegExp('(' + regexStr + ')', 'gi');
$('.search-result-text').each(function() {

Loading…
Cancel
Save