summaryrefslogtreecommitdiff
path: root/op_crates/web/11_url.js
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates/web/11_url.js')
-rw-r--r--op_crates/web/11_url.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/op_crates/web/11_url.js b/op_crates/web/11_url.js
index fb5bece25..fe7ef041a 100644
--- a/op_crates/web/11_url.js
+++ b/op_crates/web/11_url.js
@@ -803,7 +803,7 @@
function encodeChar(c) {
return [...encoder.encode(c)]
- .map((n) => `%${n.toString(16)}`)
+ .map((n) => `%${n.toString(16).padStart(2, "0")}`)
.join("")
.toUpperCase();
}