Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
arg is a String object not a string literal (fixes #226)
  • Loading branch information
DABH committed May 5, 2018
1 parent ffeba27 commit 855e342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/colors.js
Expand Up @@ -105,7 +105,7 @@ function applyStyle() {
var args = Array.prototype.slice.call(arguments);

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

if (!colors.enabled || !str) {
Expand Down

0 comments on commit 855e342

Please sign in to comment.