diff --git a/Utilities/StrFmt.cpp b/Utilities/StrFmt.cpp index ea9c9b3600..b5f76e7a86 100644 --- a/Utilities/StrFmt.cpp +++ b/Utilities/StrFmt.cpp @@ -429,11 +429,10 @@ std::vector fmt::split(std::string_view source, std::initializer_li for (auto& separator : separators) { - if (usz pos0 = source.find(separator, index); pos0 != umax) + if (usz pos0 = source.find(separator, index); pos0 < pos) { pos = pos0; sep_size = separator.size(); - break; } }