Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/search.js')
-rw-r--r--lib/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/search.js b/lib/search.js
index 8a7238cb1..3e9bdb15f 100644
--- a/lib/search.js
+++ b/lib/search.js
@@ -181,7 +181,7 @@ function prettify (data, args) {
l._undent = l._undent || []
l._undent[i] = len - longest[i]
}
- l[i] = l[i].replace(/\s+/g, " ")
+ l[i] = ('' + l[i]).replace(/\s+/g, " ")
})
return l
}).sort(function (a, b) {