fix quoted percent sign

This commit is contained in:
Bruce A. MacNaughton 2020-04-06 13:37:14 -07:00 committed by Qix
parent 80ef62a3af
commit 22e13fe07e

View File

@ -92,7 +92,7 @@ function setup(env) {
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
// If we encounter an escaped % then don't increase the array index
if (match === '%%') {
return match;
return '%';
}
index++;
const formatter = createDebug.formatters[format];