Browse Source

fix colons

master
Laura Hausmann 11 months ago
parent
commit
dddc405e39
Signed by: zotan GPG Key ID: 5EC1D38FFC321311
  1. 3
      AutoTag.cli/AutoTag.cs

3
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);
}

Loading…
Cancel
Save