fix colons
This commit is contained in:
parent
c8cbfdfd79
commit
dddc405e39
|
@ -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…
Reference in New Issue