Skip to content

Commit 855e342

Browse files
committed
arg is a String object not a string literal (fixes #226)
1 parent ffeba27 commit 855e342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/colors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function applyStyle() {
105105
var args = Array.prototype.slice.call(arguments);
106106

107107
var str = args.map(function(arg) {
108-
return typeof arg === 'object' ? util.inspect(arg) : arg;
108+
return arg.constructor === String ? arg : util.inspect(arg);
109109
}).join(' ');
110110

111111
if (!colors.enabled || !str) {

0 commit comments

Comments
 (0)