using System.IO; namespace PKHeX.Core { public static partial class Util { /// /// Cleans the local by removing any invalid filename characters. /// /// New string without any invalid characters. public static string CleanFileName(string fileName) { return string.Concat(fileName.Split(Path.GetInvalidFileNameChars())); } } }