summaryrefslogtreecommitdiff
path: root/deps/npm/lib/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/search.js')
-rw-r--r--deps/npm/lib/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/lib/search.js b/deps/npm/lib/search.js
index 3be8b0d27d..5dd060f829 100644
--- a/deps/npm/lib/search.js
+++ b/deps/npm/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 } )
}