Commit 447b63f1 authored by Aloshi's avatar Aloshi

Strip trailing whitespace in clean filenames.

parent 8858f488
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment