mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-19 17:03:12 +00:00
99005d8fc0
more discards & simplifications
17 lines
444 B
C#
17 lines
444 B
C#
using System.IO;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
public static partial class Util
|
|
{
|
|
public static string CleanFileName(string fileName)
|
|
{
|
|
return string.Concat(fileName.Split(Path.GetInvalidFileNameChars()));
|
|
}
|
|
public static string TrimFromZero(string input)
|
|
{
|
|
int index = input.IndexOf('\0');
|
|
return index < 0 ? input : input.Substring(0, index);
|
|
}
|
|
}
|
|
}
|