mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 04:16:50 +01:00
Fix the logic of String::path_clean_end_slash().
This commit is contained in:
parent
f81018f712
commit
02af86d362
@ -3571,7 +3571,7 @@ String String::path_clean_end_slash() const {
|
||||
String ret = *this;
|
||||
|
||||
while (ret.length() > 1 && (ret.ends_with("/") || ret.ends_with("\\"))) {
|
||||
ret.resize(length() - 1);
|
||||
ret.resize(ret.length());
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user