Strip trailing whitespace in clean filenames.

This commit is contained in:
Aloshi 2014-06-06 15:20:44 -05:00
parent 8858f4888b
commit 447b63f1e0

View file

@ -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;
}