[Utilities] Clean input string more for dat format

This commit is contained in:
Matt Nadareski
2018-02-21 10:38:32 -08:00
parent bc059f89fc
commit 1370a7fbad

View File

@@ -719,7 +719,7 @@ namespace SabreTools.Library.Tools
/// <returns>DatFormat value corresponding to the string</returns> /// <returns>DatFormat value corresponding to the string</returns>
public static DatFormat GetDatFormat(string input) public static DatFormat GetDatFormat(string input)
{ {
switch (input?.ToLowerInvariant()) switch (input?.Trim().ToLowerInvariant())
{ {
case "all": case "all":
return DatFormat.ALL; return DatFormat.ALL;