mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Add missing characters for property name quoting
This commit is contained in:
parent
7211012c4f
commit
367d75fab0
@ -4420,7 +4420,7 @@ String String::property_name_encode() const {
|
||||
// as well as '"', '=' or ' ' (32)
|
||||
const char32_t *cstr = get_data();
|
||||
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 New Issue
Block a user