diff options
author | Lisa Junger <ljunger@thoughtworks.com> | 2015-03-25 09:54:17 +0100 |
---|---|---|
committer | Lisa Junger <ljunger@thoughtworks.com> | 2015-03-25 09:54:17 +0100 |
commit | 835f61a5a78af8a3c6e0431d44b673575d571327 (patch) | |
tree | ffabd59e51d45226515a09641ed7d956b4b1b710 /web-ui/app | |
parent | 520cd217ed34fc541c0234c6add78a093569a082 (diff) | |
parent | d9eaa6b9468dded7813e880291f5e4cc209ad0c6 (diff) |
Merge branch '192' of https://github.com/alabeduarte/pixelated-user-agent into alabeduarte-192
Diffstat (limited to 'web-ui/app')
-rw-r--r-- | web-ui/app/js/search/results_highlighter.js | 2 |
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 4a4a8eca..9109bca4 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(keyword, 'i'), { + $(domIdent).highlightRegex(new RegExp('\\b' + keyword, 'i'), { tagType: 'em', className: 'search-highlight' }); |