Browse Source

Fix console formatter to recognize json properly

v0.7.4-release
Marco Rogers 15 years ago
committed by Ryan Dahl
parent
commit
1662c37c40
  1. 2
      src/node.js

2
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();

Loading…
Cancel
Save