summaryrefslogtreecommitdiff
path: root/web-ui/app/js/search/results_highlighter.js
diff options
context:
space:
mode:
authorGabriel Albo <gabriel@albo.com.br>2015-11-04 11:23:50 -0200
committerGabriel Albo <gabriel@albo.com.br>2015-11-04 11:23:50 -0200
commit742f6c87b0ff37154b1c2779c0f5a44fd899c34d (patch)
tree763caa014955576b613c4114cb7962265b37e743 /web-ui/app/js/search/results_highlighter.js
parentdccd63fcffe4a5b73282815514fdb0848a0468ed (diff)
parentd79aa00e3c24c5bf5e5ed5ba5a9b976f93034362 (diff)
Merge branch 'master' of github.com:pixelated-project/pixelated-user-agent
Diffstat (limited to 'web-ui/app/js/search/results_highlighter.js')
-rw-r--r--web-ui/app/js/search/results_highlighter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web-ui/app/js/search/results_highlighter.js b/web-ui/app/js/search/results_highlighter.js
index 2c7d1cc7..9e3ba167 100644
--- a/web-ui/app/js/search/results_highlighter.js
+++ b/web-ui/app/js/search/results_highlighter.js
@@ -40,7 +40,7 @@ define(
var domIdent = data.where;
if(this.attr.keywords) {
_.each(this.attr.keywords, function (keyword) {
- $(domIdent).highlightRegex(new RegExp('\\b' + keyword, 'i'), {
+ $(domIdent).highlightRegex(new RegExp(keyword, 'i'), {
tagType: 'em',
className: 'search-highlight'
});