pinojs / quick-format-unescaped

Solves a problem with util.format
MIT License
17 stars 13 forks source link

Missing agruments with %% #11

Closed yaroslav-korotaev closed 6 years ago

yaroslav-korotaev commented 6 years ago

Arguments are get skipped when %% is used:

const util = require('util');
const format = require('quick-format-unescaped');

console.log(util.format('test with %%: %s', 'foo')); // -> test with %: foo
console.log(format(['test with %%: %s', 'foo'])); // -> test with %: %s