fix(common): escape replaced value by blastZ · Pull Request #770 · debug-js/debug
Can you add tests for this, please? I'm not sure which sorts of things this fixes.
The default formatters will replace %o and %O, so when arguments go to the log function, util.format will get arguments like this ["...'%sugar%'... }", '...']. So if you don't escape the % in the value, util.format will replace %s with the next argument. That's why issue #766 happend.