Simplify \0 trimming

This commit is contained in:
Kurt 2015-08-08 21:44:52 -07:00
parent 34ad26fbb9
commit e8b7b14efa

View file

@ -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)
{