Merge pull request #60527 from KoBeWi/unique_names_demastered
This commit is contained in:
@ -39,6 +39,7 @@
|
||||
#include "core/math/math_funcs.h"
|
||||
#include "core/os/memory.h"
|
||||
#include "core/print_string.h"
|
||||
#include "core/string_name.h"
|
||||
#include "core/translation.h"
|
||||
#include "core/ucaps.h"
|
||||
#include "core/variant.h"
|
||||
@ -4140,7 +4141,8 @@ String String::property_name_encode() const {
|
||||
}
|
||||
|
||||
// Changes made to the set of invalid characters must also be reflected in the String documentation.
|
||||
const String String::invalid_node_name_characters = ". : @ / \"";
|
||||
const String String::invalid_node_name_characters = ". : @ / \" " UNIQUE_NODE_PREFIX;
|
||||
;
|
||||
|
||||
String String::validate_node_name() const {
|
||||
Vector<String> chars = String::invalid_node_name_characters.split(" ");
|
||||
|
||||
Reference in New Issue
Block a user