From 899b1823738d9704a7bf1fac3d0685bb589aa7cb Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 12 May 2017 11:17:15 -0700 Subject: [PATCH] [Style] Fix CMP parsing issue --- SabreTools.Library/Tools/Style.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SabreTools.Library/Tools/Style.cs b/SabreTools.Library/Tools/Style.cs index e61850a4..1d3b4290 100644 --- a/SabreTools.Library/Tools/Style.cs +++ b/SabreTools.Library/Tools/Style.cs @@ -546,7 +546,7 @@ namespace SabreTools.Library.Tools // Preprocess the string s = s.Trim(); s = Regex.Replace(s, @"^\S* \(", ""); // Remove item identifier and opening brace - s = Regex.Replace(s, @"\)\S*#.*$", ""); // Remove trailing comments + s = Regex.Replace(s, @"\)\s*#.*$", ""); // Remove trailing comments s = s.TrimEnd(')'); // Remove closing brace s = s.Trim(); // Remove leading and trailing whitespace