mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-29 19:55:37 +00:00
Strip trailing whitespace in clean filenames.
This commit is contained in:
parent
8858f4888b
commit
447b63f1e0
|
@ -32,6 +32,13 @@ std::string removeParenthesis(const std::string& str)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// also strip whitespace
|
||||||
|
end = ret.find_last_not_of(' ');
|
||||||
|
if(end != std::string::npos)
|
||||||
|
end++;
|
||||||
|
|
||||||
|
ret = ret.substr(0, end);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue