fix double path delimiter (#18923)
A cosmetic fix. It removes a double delimiter at the end of a path in `games.yml` when using `VFS games` path.
This commit is contained in:
committed by
GitHub
parent
efc9a1a668
commit
2af7b58ce4
@@ -921,6 +921,13 @@ std::string_view fmt::trim_front_sv(std::string_view source, std::string_view va
|
||||
void fmt::trim_back(std::string& source, std::string_view values)
|
||||
{
|
||||
const usz index = source.find_last_not_of(values);
|
||||
|
||||
if (index == source.npos)
|
||||
{
|
||||
source.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
source.resize(index + 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user