diff --git a/client/utils/strings.cpp b/client/utils/strings.cpp index b6e76ccb..3f42671d 100644 --- a/client/utils/strings.cpp +++ b/client/utils/strings.cpp @@ -33,10 +33,10 @@ std::vector utils::split(const std::string & s, const std::string & while (true) { - std::string::size_type j = s.find_first_not_of(sep, i); + std::string::size_type j = s.find_first_of(sep, i); if (j == std::string::npos) { - v.push_back(s.substr(i + 1)); + v.push_back(s.substr(i)); return v; }