From dddc405e391820ff51bf6d2c3e58bf32c79afd8c Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 21 Feb 2021 00:55:43 +0100 Subject: [PATCH] fix colons --- AutoTag.cli/AutoTag.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AutoTag.cli/AutoTag.cs b/AutoTag.cli/AutoTag.cs index b3b86ea..d407c14 100644 --- a/AutoTag.cli/AutoTag.cs +++ b/AutoTag.cli/AutoTag.cs @@ -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); }