Skip to content

Commit cbd6262

Browse files
committed
Revert "FIX: correct decoding escaped Unicode chars in the JSON codec"
This reverts commit c77e995.
1 parent c77e995 commit cbd6262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mezz/codec-json.reb

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ decode-unicode-char: func [
162162
"Convert \uxxxx format (NOT simple JSON backslash escapes) to a Unicode char"
163163
ch [string!] "4 hex digits"
164164
][
165-
try/except [to string! debase ch 16][ return none ]
165+
try/except [to char! to integer! debase ch 16][ return none ]
166166
]
167167

168168
replace-unicode-escapes: func [

0 commit comments

Comments
 (0)