We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52e1f21 commit f53962eCopy full SHA for f53962e
src/node.js
@@ -85,7 +85,9 @@ function useColors() {
85
exports.formatters.o = function(v) {
86
this.inspectOpts.colors = this.useColors;
87
return util.inspect(v, this.inspectOpts)
88
- .replace(/\s*\n\s*/g, ' ');
+ .split('\n').map(function(str) {
89
+ return str.trim()
90
+ }).join(' ');
91
};
92
93
/**
0 commit comments