From fe6c071d725154bdc982bb4e5ddc4bdf331a69f2 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 1 Aug 2018 18:28:05 -0700 Subject: [PATCH] Be more generous on nick parse benefits manual-edit users who forget to put a space between nick(species) --- PKHeX.Core/Editing/ShowdownSet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Editing/ShowdownSet.cs b/PKHeX.Core/Editing/ShowdownSet.cs index 230ceec64..1fa0d2310 100644 --- a/PKHeX.Core/Editing/ShowdownSet.cs +++ b/PKHeX.Core/Editing/ShowdownSet.cs @@ -473,7 +473,7 @@ private void ParseSpeciesNickname(string line) string n1, n2; if (index > 1) // correct format { - n1 = line.Substring(0, index - 1); + n1 = line.Substring(0, index).Trim(); n2 = line.Substring(index).Trim(); n2 = ReplaceAll(n2, string.Empty, "[", "]", "(", ")"); // Trim out excess data }