diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-10-15 11:38:39 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-10-15 11:38:39 -0400 |
commit | 2894fe7b3551a9951ac50df40f5737f2be1cfa2c (patch) | |
tree | 4bf2af4b8e996bab6e2f3834c51291997319d22b /shell/utils.js | |
parent | a3dc8e28a8bcc772161de8fb1cb292e12ba2f1e0 (diff) | |
download | mongo-2894fe7b3551a9951ac50df40f5737f2be1cfa2c.tar.gz |
fix json tests
Diffstat (limited to 'shell/utils.js')
-rw-r--r-- | shell/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/utils.js b/shell/utils.js index a56a17eac4b..d29dfcec762 100644 --- a/shell/utils.js +++ b/shell/utils.js @@ -343,7 +343,7 @@ tojson = function( x, indent , nolint ){ case "object":{ var s = tojsonObject( x, indent , nolint ); - if ( s.length < 70 && ( indent == null || indent.length == 0 ) ){ + if ( ( nolint == null || nolint == true ) && s.length < 70 && ( indent == null || indent.length == 0 ) ){ s = s.replace( /[\s\r\n ]+/gm , " " ); } return s; |