pad decoded percent escapes to two hex digits

This commit is contained in:
ccmdi
2026-08-14 10:52:51 -04:00
committed by p2r3
parent bdc3c33026
commit 084b5c665c
+1 -1
View File
@@ -486,7 +486,7 @@ export function decompress (input, alphabet) {
path += digit;
if (digit === "%") {
const byte = number % 256n;
path += byte.toString(16);
path += byte.toString(16).padStart(2, "0");
number /= 256n;
}
}