diff --git a/core/string.cpp b/core/string.cpp index 8b05b05..e44d9e6 100644 --- a/core/string.cpp +++ b/core/string.cpp @@ -369,7 +369,7 @@ int String::get_slice_count(const char splitter) const { return count; } int String::get_slice_count(const String &splitter) const { - int count = 0; + int count = 1; int n = find(splitter, n); while (n != -1) {