Skip to content

Commit

Permalink
Fixed Bug where multi-line comments were not removed
Browse files Browse the repository at this point in the history
  • Loading branch information
TwentyFourMinutes committed Dec 16, 2019
1 parent 37cb76c commit fcf2b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RazorMinifier/RazorMinifier.Core/Minifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static Minifier()
{
_emptyLineRegex = new Regex(@"(\n|\t|\s\s)");
_simpleCommentRegex = new Regex(@"(?<!:)\/\/.*");
_multiLineCommentRegex = new Regex(@"(<!--.*-->|\/\*.*\*\/)");
_multiLineCommentRegex = new Regex(@"(<!--(.|\n)*-->|\/\*(.|\n)*\*\/|@\*(.|\n)*\*@)");
_razorSectionRegex = new Regex(@"@section\s\w+\s?{");
_razorFunctionsRegex = new Regex(@"@functions\s\w+\s?{");
}
Expand Down

0 comments on commit fcf2b86

Please sign in to comment.