mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-28 18:40:09 +00:00
arg is a String object not a string literal (fixes #226)
This commit is contained in:
parent
ffeba270e8
commit
855e342c9e
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user