Browse files

search: Coerce fields to strings

re: #2780
  • Loading branch information...
1 parent f7d681f commit 6c64cdad888fcfe6e86503f682cf582dcce6b1c9 @isaacs isaacs committed Sep 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/search.js
View
2 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) {

0 comments on commit 6c64cda

Please sign in to comment.