1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

LibJS: Fix obviously wrong \uXXXX serialization in JSONObject

This commit is contained in:
Andreas Kling 2021-02-04 00:08:33 +01:00
parent 349cf6ad67
commit 91db36064f

View file

@ -380,7 +380,7 @@ String JSONObject::quote_json_string(String string)
break;
default:
if (ch < 0x20) {
builder.append("\\u%#08x", ch);
builder.appendff("\\u{:04x}", ch);
} else {
builder.append(ch);
}