From 7a093995f22e3b8f040e36541e8834c29aaa1fb4 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Thu, 21 Dec 2023 12:13:36 +0100 Subject: [PATCH] Fix utils::split --- client/utils/strings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }