fix colons

This commit is contained in:
Laura Hausmann 2021-02-21 00:55:43 +01:00
parent c8cbfdfd79
commit dddc405e39
Signed by: zotan
GPG Key ID: 5EC1D38FFC321311
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,8 @@ namespace AutoTag.cli {
internal static bool IsAllowed(string filename) => AllowedFileTypes.Any(filename.EndsWith);
internal static string CleanFileName(string fileName) {
return Path.GetInvalidFileNameChars().Aggregate(fileName, (current, c) => current.Replace(c.ToString(), string.Empty));
return Path.GetInvalidFileNameChars().Aggregate(fileName, (current, c) => current.Replace(c.ToString(), string.Empty))
.Replace(":", " -");
//var tempBytes = Encoding.GetEncoding("ISO-8859-8").GetBytes(str);
//return Encoding.UTF8.GetString(tempBytes);
}