diff options
Diffstat (limited to 'lib/search.js')
-rw-r--r-- | lib/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/search.js b/lib/search.js index 3be8b0d27..5dd060f82 100644 --- a/lib/search.js +++ b/lib/search.js @@ -218,7 +218,7 @@ function addColorMarker (str, arg, i) { if (arg.charAt(0) === "/") { //arg = arg.replace(/\/$/, "") - return str.replace( new RegExp(arg.substr(1, arg.length - 1), "gi") + return str.replace( new RegExp(arg.substr(1, arg.length - 2), "gi") , function (bit) { return markStart + bit + markEnd } ) } |