From 89333ab339a2c371efdf8cff0941375e83827554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 13 Mar 2015 12:43:41 -0400 Subject: [PATCH] closes #2824 doggy.gif --- public/src/client/search.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/public/src/client/search.js b/public/src/client/search.js index 44477cd06d..900a4d1d6d 100644 --- a/public/src/client/search.js +++ b/public/src/client/search.js @@ -116,19 +116,13 @@ define('forum/search', ['search', 'autocomplete'], function(searchModule, autoco if (!searchQuery) { return; } - var searchTerms = searchQuery.trim().split(' '); - var regexes = []; - for (var i=0; i' + regexes[i].term + ''); - } + var text = result.html().replace(regex, '$1'); result.html(text).find('img').addClass('img-responsive'); }); }