mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 00:07:15 +00:00
16 lines
473 B
C#
16 lines
473 B
C#
using System.IO;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
public static partial class Util
|
|
{
|
|
/// <summary>
|
|
/// Cleans the local <see cref="fileName"/> by removing any invalid filename characters.
|
|
/// </summary>
|
|
/// <returns>New string without any invalid characters.</returns>
|
|
public static string CleanFileName(string fileName)
|
|
{
|
|
return string.Concat(fileName.Split(Path.GetInvalidFileNameChars()));
|
|
}
|
|
}
|
|
}
|