Allow '-' character in iOS reverse DNS identifiers dissallow underscores.
This commit is contained in:
parent
6fbd045845
commit
c48576f733
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ class EditorExportPlatformIOS : public EditorExportPlatform {
|
|||
first = true;
|
||||
continue;
|
||||
}
|
||||
if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_')) {
|
||||
if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '-')) {
|
||||
if (r_error) {
|
||||
*r_error = vformat(TTR("The character '%s' is not allowed in Identifier."), String::chr(c));
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ class EditorExportPlatformIOS : public EditorExportPlatform {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
if (first && c == '_') {
|
||||
if (first && c == '-') {
|
||||
if (r_error) {
|
||||
*r_error = vformat(TTR("The character '%s' cannot be the first character in a Identifier segment."), String::chr(c));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue