Review changes

This commit is contained in:
jpirnay
2026-05-04 17:27:21 +02:00
parent 5486eee4e3
commit e70fd281d9
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -10,6 +10,7 @@ namespace FsHelpers {
// both normalisePath overloads so the parsing rules stay in one place.
static void appendOrPopComponent(std::string& out, const char* compData, size_t compLen) {
if (compLen == 0) return;
if (compLen == 1 && compData[0] == '.') return;
if (compLen == 2 && compData[0] == '.' && compData[1] == '.') {
if (out.empty()) return;
const auto lastSlash = out.find_last_of('/');