mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
Correct change_extension after unicode changes
This commit is contained in:
@@ -119,7 +119,7 @@ template <typename T>
|
|||||||
T change_extension(const T& fn, const T& ext) {
|
T change_extension(const T& fn, const T& ext) {
|
||||||
typename T::size_type dot = fn.find_last_of('.');
|
typename T::size_type dot = fn.find_last_of('.');
|
||||||
if (dot != T::npos) {
|
if (dot != T::npos) {
|
||||||
return fn.substr(0, dot) + ext;
|
return fn.substr(0, dot + 1) + ext;
|
||||||
} else {
|
} else {
|
||||||
return fn + ext;
|
return fn + ext;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user