From 9d1dc11c6aee91a5f6eaa2478e89f44345c4fa48 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 30 Mar 2023 19:35:41 -0400 Subject: [PATCH] Trim names in hashfiles --- SabreTools.DatFiles/Formats/Hashfile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SabreTools.DatFiles/Formats/Hashfile.cs b/SabreTools.DatFiles/Formats/Hashfile.cs index 1aa711bb..d91c6756 100644 --- a/SabreTools.DatFiles/Formats/Hashfile.cs +++ b/SabreTools.DatFiles/Formats/Hashfile.cs @@ -50,13 +50,13 @@ namespace SabreTools.DatFiles.Formats // If we have CRC, then it's an SFV file and the name is first if (_hash.HasFlag(Hash.CRC)) { - name = string.Join(" ", split[..^1]).Replace("*", String.Empty); + name = string.Join(" ", split[..^1]).Replace("*", String.Empty).Trim(); hash = split[^1]; } // Otherwise, the name is second else { - name = string.Join(" ", split[1..]).Replace("*", String.Empty); + name = string.Join(" ", split[1..]).Replace("*", String.Empty).Trim(); hash = split[0]; }