mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 23:15:38 +00:00
Merge pull request #474 from tomaz82/getGenericPath_fix
Remove trailing '/' on paths in getGenericPath
This commit is contained in:
commit
e2468fef18
|
@ -226,6 +226,10 @@ namespace Utils
|
||||||
while((offset = path.find("//")) != std::string::npos)
|
while((offset = path.find("//")) != std::string::npos)
|
||||||
path.erase(offset, 1);
|
path.erase(offset, 1);
|
||||||
|
|
||||||
|
// remove trailing '/'
|
||||||
|
while(path.length() && ((offset = path.find_last_of('/')) == (path.length() - 1)))
|
||||||
|
path.erase(offset, 1);
|
||||||
|
|
||||||
// return generic path
|
// return generic path
|
||||||
return path;
|
return path;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue