Skip to content

Commit

Permalink
Fix concat in bundle processor when parsing @charset
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Aug 30, 2023
1 parent ed490c1 commit 415fac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lunet.Bundles/BundleProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public void AppendContent(string mode, string content)
// so we are handling this case by setting charset rule at the beginning of the concat
if (Kind == "css" && content.StartsWith("@charset "))
{
var endOfCharset = content.IndexOf('\n');
var endOfCharset = content.IndexOf(';');
string charset = null;
if (endOfCharset > 0)
{
Expand Down

0 comments on commit 415fac9

Please sign in to comment.