mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
make '%j' work as expected in util.format, console.log, and so on
This commit is contained in:
parent
140883c553
commit
00b52df5b1
@ -136,7 +136,7 @@ exports.format = function(f) {
|
||||
switch (x) {
|
||||
case '%s': return String(args[i++]);
|
||||
case '%d': return Number(args[i++]);
|
||||
case '%j': return JSON.stringify(args[i++]);
|
||||
case '%j': return require('jsdoc/util/dumper').dump(args[i++]);
|
||||
default:
|
||||
return x;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user