mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-06-10 04:10:02 -05:00
Simplify \0 trimming
This commit is contained in:
parent
34ad26fbb9
commit
e8b7b14efa
|
|
@ -177,8 +177,7 @@ internal static string CleanFileName(string fileName)
|
|||
}
|
||||
internal static string TrimFromZero(string input)
|
||||
{
|
||||
int index = input.IndexOf('\0');
|
||||
return index < 0 ? input : input.Substring(0, index);
|
||||
return input.TrimEnd('\0');
|
||||
}
|
||||
internal static string[] getStringList(string f, string l)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user