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