There was an error while loading. Please reload this page.
1 parent 47747f3 commit c38a016Copy full SHA for c38a016
src/node.js
@@ -83,7 +83,9 @@ function useColors() {
83
exports.formatters.o = function(v) {
84
this.inspectOpts.colors = this.useColors;
85
return util.inspect(v, this.inspectOpts)
86
- .replace(/\s*\n\s*/g, ' ');
+ .split('\n').map(function(str) {
87
+ return str.trim()
88
+ }).join(' ');
89
};
90
91
/**
0 commit comments