diff options
| author | Will Nations | 2017-11-14 14:32:37 -0600 |
|---|---|---|
| committer | Will Nations | 2017-11-14 14:32:37 -0600 |
| commit | 238d488a045444ef49d88fb2e93122a90e092f2b (patch) | |
| tree | b75e9ca6cd0b9e03b9ca9e60cc80f43aa60bd55f /core/ustring.cpp | |
| parent | 47e5b43160128ea6e466ad70952078ff386718cd (diff) | |
| download | godot-238d488a045444ef49d88fb2e93122a90e092f2b.tar.gz godot-238d488a045444ef49d88fb2e93122a90e092f2b.tar.zst godot-238d488a045444ef49d88fb2e93122a90e092f2b.zip | |
Diffstat (limited to 'core/ustring.cpp')
| -rw-r--r-- | core/ustring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 415494ddc..7c3a784c5 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -564,7 +564,7 @@ void String::erase(int p_pos, int p_chars) { String String::capitalize() const { - String aux = this->replace("_", " ").to_lower(); + String aux = this->camelcase_to_underscore(true).replace("_", " ").strip_edges(); String cap; for (int i = 0; i < aux.get_slice_count(" "); i++) { |
