Fix utils::split

This commit is contained in:
Guillaume Meunier
2024-01-07 11:45:07 +01:00
parent cf14f9bd8b
commit 7a093995f2
+2 -2
View File
@@ -33,10 +33,10 @@ std::vector<std::string> 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;
}