Update trim call for strings

7ef8a88678 (commitcomment-29123689)

A better fix may be to just make all line endings consistent ('\n'), but
string resource loading time is negligible
This commit is contained in:
Kurt
2018-05-24 21:16:55 -07:00
parent 13fe1a2948
commit dbb23f33c8

View File

@@ -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();
}