aboutsummaryrefslogtreecommitdiff
path: root/node_modules/debug/src/node.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/debug/src/node.js')
-rw-r--r--node_modules/debug/src/node.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/node_modules/debug/src/node.js b/node_modules/debug/src/node.js
index af6129768..b15109c90 100644
--- a/node_modules/debug/src/node.js
+++ b/node_modules/debug/src/node.js
@@ -85,7 +85,9 @@ function useColors() {
exports.formatters.o = function(v) {
this.inspectOpts.colors = this.useColors;
return util.inspect(v, this.inspectOpts)
- .replace(/\s*\n\s*/g, ' ');
+ .split('\n').map(function(str) {
+ return str.trim()
+ }).join(' ');
};
/**