From c03a54a41df2f0db8a2669096b818a6258a313bc Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 5 Oct 2016 11:40:47 -0700 Subject: [PATCH] [Style] Remove the "invalid filename characters" from cleaning since it involves path separators too --- SabreTools.Helper/Tools/Style.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SabreTools.Helper/Tools/Style.cs b/SabreTools.Helper/Tools/Style.cs index 711d1a37..044c9990 100644 --- a/SabreTools.Helper/Tools/Style.cs +++ b/SabreTools.Helper/Tools/Style.cs @@ -437,8 +437,7 @@ namespace SabreTools.Helper public static string RemovePathUnsafeCharacters(string s) { List invalidPath = Path.GetInvalidPathChars().ToList(); - List invalidName = Path.GetInvalidFileNameChars().ToList(); - return new string(s.Where(c => !invalidPath.Contains(c) && !invalidName.Contains(c)).ToArray()); + return new string(s.Where(c => !invalidPath.Contains(c)).ToArray()); } #endregion