If not string, console.log should just print it without trying to format
This commit is contained in:
parent
c9e12204a2
commit
b69c6a03b1
@ -194,6 +194,7 @@ process.openStdin = function () {
|
||||
function format (f) {
|
||||
var i = 1;
|
||||
var args = arguments;
|
||||
if (!(f instanceof String)) return f;
|
||||
return f.replace(/%([sdf])/g, function (x) {
|
||||
switch (x) {
|
||||
case '%s': return args[i++];
|
||||
|
Loading…
x
Reference in New Issue
Block a user