diff --git a/SabreTools.Helper/Tools/Style.cs b/SabreTools.Helper/Tools/Style.cs index 836d4987..cd394408 100644 --- a/SabreTools.Helper/Tools/Style.cs +++ b/SabreTools.Helper/Tools/Style.cs @@ -407,7 +407,7 @@ namespace SabreTools.Helper.Tools // Preprocess the string s = s.Trim(); s = Regex.Replace(s, @"^\S* \(", ""); // Remove item identifier and opening brace - s = Regex.Replace(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