From 1662c37c40c88dd37c35a1a6722c71a23eaa577c Mon Sep 17 00:00:00 2001 From: Marco Rogers Date: Thu, 15 Jul 2010 23:36:35 -0700 Subject: [PATCH] Fix console formatter to recognize json properly --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index 2c321d35767..914f02f6609 100644 --- a/src/node.js +++ b/src/node.js @@ -195,7 +195,7 @@ function format (f) { var i = 1; var args = arguments; if (!(f instanceof String)) f = String(f); - return f.replace(/%([sdf])/g, function (x) { + return f.replace(/%([sdj])/g, function (x) { switch (x) { case '%s': return args[i++]; case '%d': return args[i++].toString();