From 0469abd4a9c9270a1fdc962969e36e63699af8b4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 10 Dec 2017 21:51:33 +0100 Subject: upgrade dependencies --- node_modules/debug/src/node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'node_modules/debug/src/node.js') 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(' '); }; /** -- cgit v1.2.3