mirror of
https://github.com/debug-js/debug.git
synced 2026-01-18 16:12:38 +00:00
fix quoted percent sign
This commit is contained in:
parent
80ef62a3af
commit
22e13fe07e
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user