From dbb23f33c88fffb05d76c7bcb6472307f9491b6c Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 24 May 2018 21:16:55 -0700 Subject: [PATCH] Update trim call for strings https://github.com/kwsch/PKHeX/commit/7ef8a88678adc23e08e374f3d52bd3524090e20e#commitcomment-29123689 A better fix may be to just make all line endings consistent ('\n'), but string resource loading time is negligible --- PKHeX.Core/Util/DataUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Util/DataUtil.cs b/PKHeX.Core/Util/DataUtil.cs index 447aa6719..3e53db6f2 100644 --- a/PKHeX.Core/Util/DataUtil.cs +++ b/PKHeX.Core/Util/DataUtil.cs @@ -84,7 +84,7 @@ public static string[] GetStringList(string f) if (txt == null) return new string[0]; string[] rawlist = txt.Split('\n'); for (int i = 0; i < rawlist.Length; i++) - rawlist[i] = rawlist[i].Trim(); + rawlist[i] = rawlist[i].TrimEnd('\r'); stringListCache.Add(f, rawlist); return (string[])rawlist.Clone(); }