Don't clean slashes from folder names

(cherry picked from commit 0bc16efe26d403ab89b8fdb092fe729cd4ec2d7b)
pull/2513/head
Mark McDowall 2 years ago committed by Bogdan
parent 2dc5246180
commit 1ab34a1692

@ -231,9 +231,8 @@ namespace NzbDrone.Core.Organizer
public static string CleanFolderName(string name) public static string CleanFolderName(string name)
{ {
name = FileNameCleanupRegex.Replace(name, match => match.Captures[0].Value[0].ToString()); name = FileNameCleanupRegex.Replace(name, match => match.Captures[0].Value[0].ToString());
name = name.Trim(' ', '.');
return CleanFileName(name); return name.Trim(' ', '.');
} }
private void AddAuthorTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, Author author) private void AddAuthorTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, Author author)

Loading…
Cancel
Save