diff --git a/Utilities/StrFmt.cpp b/Utilities/StrFmt.cpp index f937da0e2c..ea9c9b3600 100644 --- a/Utilities/StrFmt.cpp +++ b/Utilities/StrFmt.cpp @@ -455,6 +455,11 @@ std::vector fmt::split(std::string_view source, std::initializer_li result.emplace_back(std::string(piece)); } + if (result.empty() && !is_skip_empty) + { + result.emplace_back(); + } + return result; }