diff --git a/src/common.js b/src/common.js index da7eada6..0a61203c 100644 --- a/src/common.js +++ b/src/common.js @@ -99,6 +99,7 @@ function setup(env) { if (typeof formatter === 'function') { const val = args[index]; match = formatter.call(self, val); + match = match.replace(/%/g, () => '%%'); // Now we need to remove `args[index]` since it's inlined in the `format` args.splice(index, 1);