mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-17 01:28:00 +00:00
Simplify \0 trimming
This commit is contained in:
parent
34ad26fbb9
commit
e8b7b14efa
1 changed files with 1 additions and 2 deletions
|
@ -177,8 +177,7 @@ namespace PKHeX
|
|||
}
|
||||
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 a new issue