Skip to content

Commit

Permalink
fix quoted percent sign
Browse files Browse the repository at this point in the history
  • Loading branch information
bmacnaughton authored and Qix- committed Jul 16, 2020
1 parent 80ef62a commit 22e13fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 22e13fe

Please sign in to comment.