summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-06-25 13:30:54 +0200
committerGitHub <noreply@github.com>2019-06-25 13:30:54 +0200
commitc93bea312ffc45b18f3d7d2e4f01476fc7848e93 (patch)
tree422017ac7dc86c3483342d1dc2fa343c32d7faa3
parent93a67dba375ef52ea4d77a5d72107330d9d23ba2 (diff)
parentc48576f7330a7d206c0833f2846f7f0dec74e956 (diff)
Merge pull request #30050 from njt1982/30050-identifier-fix
iOS export: invalid identifier, the character '-' is not allowed
-rw-r--r--platform/iphone/export/export.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp
index 7ca83320d0..b2064472e4 100644
--- a/platform/iphone/export/export.cpp
+++ b/platform/iphone/export/export.cpp
@@ -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));
}