From 7bb3364b43a88d80ad8e900e9824281799c642e1 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 8 Mar 2023 08:47:46 -0500 Subject: [PATCH] Trim not TrimEnd --- BinaryObjectScanner.Matching/MatchUtil.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BinaryObjectScanner.Matching/MatchUtil.cs b/BinaryObjectScanner.Matching/MatchUtil.cs index 18ad7aa4..a2ff7645 100644 --- a/BinaryObjectScanner.Matching/MatchUtil.cs +++ b/BinaryObjectScanner.Matching/MatchUtil.cs @@ -98,7 +98,7 @@ namespace BinaryObjectScanner.Matching if (version == null) continue; - matchedProtections.Enqueue($"{matcher.ProtectionName ?? "Unknown Protection"} {version}".TrimEnd() + (includeDebug ? $" (Index {positionsString})" : string.Empty)); + matchedProtections.Enqueue($"{matcher.ProtectionName ?? "Unknown Protection"} {version}".Trim() + (includeDebug ? $" (Index {positionsString})" : string.Empty)); } // If we're stopping after the first protection, bail out here @@ -199,7 +199,7 @@ namespace BinaryObjectScanner.Matching if (version == null) continue; - matchedProtections.Enqueue($"{matcher.ProtectionName ?? "Unknown Protection"} {version}".TrimEnd() + (includeDebug ? $" (Index {positionsString})" : string.Empty)); + matchedProtections.Enqueue($"{matcher.ProtectionName ?? "Unknown Protection"} {version}".Trim() + (includeDebug ? $" (Index {positionsString})" : string.Empty)); } // If we're stopping after the first protection, bail out here @@ -324,7 +324,7 @@ namespace BinaryObjectScanner.Matching if (version == null) continue; - matchedProtections.Enqueue($"{matcher.ProtectionName ?? "Unknown Protection"} {version}".TrimEnd()); + matchedProtections.Enqueue($"{matcher.ProtectionName ?? "Unknown Protection"} {version}".Trim()); } // If we're stopping after the first protection, bail out here