|
@@ -4128,7 +4128,7 @@ String String::property_name_encode() const {
|
|
// as well as '"', '=' or ' ' (32)
|
|
// as well as '"', '=' or ' ' (32)
|
|
const CharType *cstr = c_str();
|
|
const CharType *cstr = c_str();
|
|
for (int i = 0; cstr[i]; i++) {
|
|
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() + "\"";
|
|
return "\"" + c_escape_multiline() + "\"";
|
|
}
|
|
}
|
|
}
|
|
}
|