Strip end period from file names

Fixes #239
This commit is contained in:
Pat Hartl 2025-05-04 16:10:32 -05:00
parent 549d45dafa
commit cbc93ca852

View file

@ -17,6 +17,9 @@ namespace LANCommander.SDK.Extensions
filename = colonInTitle.Replace(filename, "$1 - $3");
filename = removeInvalidChars.Replace(filename, replacement);
if (filename.EndsWith('.'))
filename = filename.Substring(0, filename.Length - 1);
return filename;
}