Add missing characters for property name quoting
(cherry picked from commit 367d75fab0
)
This commit is contained in:
parent
26e582b170
commit
f83b17e4eb
1 changed files with 1 additions and 1 deletions
|
@ -4128,7 +4128,7 @@ String String::property_name_encode() const {
|
|||
// as well as '"', '=' or ' ' (32)
|
||||
const CharType *cstr = c_str();
|
||||
for (int i = 0; cstr[i]; i++) {
|
||||
if (cstr[i] == '=' || cstr[i] == '"' || cstr[i] < 33 || cstr[i] > 126) {
|
||||
if (cstr[i] == '=' || cstr[i] == '"' || cstr[i] == ';' || cstr[i] == '[' || cstr[i] == ']' || cstr[i] < 33 || cstr[i] > 126) {
|
||||
return "\"" + c_escape_multiline() + "\"";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue