From 621468f498778dd61d4048daef9b985940a5ec1e Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 20 May 2023 01:31:06 +0200 Subject: [PATCH] Added InvalidFileNameCharacters to list of replaced Characters in folder-names --- Tranga/Publication.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Publication.cs b/Tranga/Publication.cs index 2d6c668..86808bb 100644 --- a/Tranga/Publication.cs +++ b/Tranga/Publication.cs @@ -33,7 +33,7 @@ public readonly struct Publication this.originalLanguage = originalLanguage; this.status = status; this.downloadUrl = downloadUrl; - this.folderName = string.Concat(sortName.Split(Path.GetInvalidPathChars())); + this.folderName = string.Concat(sortName.Split(Path.GetInvalidPathChars().Concat(Path.GetInvalidFileNameChars()).ToArray())); } ///