mirror of
https://github.com/wownero/wownero.git
synced 2026-11-12 03:13:54 +01:00
epee: string_tools: keep full path in cut_off_extension
This commit is contained in:
@@ -189,7 +189,7 @@ namespace string_tools
|
||||
//----------------------------------------------------------------------------
|
||||
std::string cut_off_extension(const std::string& str)
|
||||
{
|
||||
return boost::filesystem::path(str).stem().string();
|
||||
return boost::filesystem::path(str).replace_extension("").string();
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in New Issue
Block a user