Skip to content

Commit

Permalink
Will now again clear line-breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
TwentyFourMinutes committed Dec 17, 2019
1 parent 16a91f6 commit 699e71a
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 @@ -14,7 +14,7 @@ internal static class Minifier

static Minifier()
{
_emptyLineRegex = new Regex(@"^(\s)+", RegexOptions.Multiline);
_emptyLineRegex = new Regex(@"(^(\s)+|(\s)*(\v|\n|\r))", RegexOptions.Multiline);
_simpleCommentRegex = new Regex(@"(?<!:)\/\/.*");
_multiLineCommentRegex = new Regex(@"(<!--(.|\n)*-->|\/\*(.|\n)*\*\/|@\*(.|\n)*\*@)");
_razorSectionRegex = new Regex(@"@section\s\w+\s?{");
Expand Down

0 comments on commit 699e71a

Please sign in to comment.