enhance: unified all file-path normalization - use char-replace, trim trailing slash

This commit is contained in:
Göran W 2025-06-03 16:45:00 +02:00 committed by leo
parent 54c05ac35a
commit 88c38b4139
No known key found for this signature in database
8 changed files with 15 additions and 17 deletions

View file

@ -13,7 +13,7 @@ namespace SourceGit.ViewModels
get => _id;
set
{
var normalized = value.Replace('\\', '/');
var normalized = value.Replace('\\', '/').TrimEnd('/');
SetProperty(ref _id, normalized);
}
}