Skip to content

Commit

Permalink
Docs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 24, 2024
1 parent 2992706 commit bd0e25a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,20 +217,21 @@ Blazor uses `<!--!-->` to delineate components in the resulting html. Some empty
// remove some noise from the html snapshot
VerifierSettings.ScrubEmptyLines();
BlazorScrubber.ScrubCommentLines();
VerifierSettings.ScrubLinesWithReplace(s =>
{
var scrubbed = s.Replace("<!--!-->", "");
if (string.IsNullOrWhiteSpace(scrubbed))
VerifierSettings.ScrubLinesWithReplace(
line =>
{
return null;
}
var scrubbed = line.Replace("<!--!-->", "");
if (string.IsNullOrWhiteSpace(scrubbed))
{
return null;
}

return scrubbed;
});
return scrubbed;
});
HtmlPrettyPrint.All();
VerifierSettings.ScrubLinesContaining("<script src=\"_framework/dotnet.");
```
<sup><a href='/src/Tests/ModuleInitializer.cs#L14-L32' title='Snippet source file'>snippet source</a> | <a href='#snippet-scrubbers' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Tests/ModuleInitializer.cs#L14-L33' title='Snippet source file'>snippet source</a> | <a href='#snippet-scrubbers' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


Expand Down

0 comments on commit bd0e25a

Please sign in to comment.