aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorIllusionMan1212 <hisham.abourgheba@gmail.com>2024-10-26 01:25:12 +0200
committerIllusionMan1212 <hisham.abourgheba@gmail.com>2024-10-26 01:25:12 +0200
commit8906ffb39cab54e8478b48044db9b3602b802f50 (patch)
treeac74257423d3a4739c7cbfd01b8e12fe38a6960b /core
parent831558a7c24cc83da0c1a56c5de2d74464e0ce3a (diff)
core/io: correctly escape runes greater than 0xFFFF
Diffstat (limited to 'core')
-rw-r--r--core/io/util.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/util.odin b/core/io/util.odin
index e65a69fb3..296be7bc0 100644
--- a/core/io/util.odin
+++ b/core/io/util.odin
@@ -225,7 +225,7 @@ write_escaped_rune :: proc(w: Writer, r: rune, quote: byte, html_safe := false,
} else {
write_byte(w, '\\', &n) or_return
write_byte(w, 'U', &n) or_return
- for s := 24; s >= 0; s -= 4 {
+ for s := 28; s >= 0; s -= 4 {
write_byte(w, DIGITS_LOWER[c>>uint(s) & 0xf], &n) or_return
}
}