summaryrefslogtreecommitdiff
path: root/web-ui/app/js/search
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-11-03 17:59:07 -0200
committerGiovane <giovaneliberato@gmail.com>2015-11-03 17:59:41 -0200
commit0f84c6354a116fd53628b23a56c1528c5dd3e8ef (patch)
treed20846b7b47dd613fffce87ce8a43b686d658819 /web-ui/app/js/search
parentaf7631369c96d3da54abb4e1cab44ea61151c481 (diff)
[#508] Making search also work with substrings - pairing w/ @pereiragislene
Diffstat (limited to 'web-ui/app/js/search')
-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'
});