Fixed an issue where StringUtil::delimitedStringToVector could return empty elements.

This commit is contained in:
Leon Styhre 2022-08-19 17:03:55 +02:00
parent 12f7e20c95
commit 9d2a9ed9d9

View file

@ -706,6 +706,10 @@ namespace Utils
std::sort(vectorResult.begin(), vectorResult.end());
}
// Remove any empty elements.
vectorResult.erase(remove(vectorResult.begin(), vectorResult.end(), ""),
vectorResult.end());
return vectorResult;
}