Skip to content

Commit e4c7cd3

Browse files
Remove unnecessary escaping of curly braces in command output for improved HTML rendering in coverage report
1 parent 6775fb3 commit e4c7cd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/main.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ LogGroup 'Files analyzed' {
140140
# --------------------------------------------------------------------------------
141141
$missedForDisplay = $codeCoverage.CommandsMissed | Sort-Object -Property File, Line | ForEach-Object {
142142
$command = '<pre><code class=''language-pwsh''>{0}</pre></code>' -f (Normalize-IndentationExceptFirst -Code $_.Command)
143-
$command = $command.Replace([Environment]::NewLine, '<br>').Replace(' ', '&nbsp;').Replace('{', '&#123;').Replace('}', '&#125;')
143+
$command = $command.Replace([Environment]::NewLine, '<br>').Replace(' ', '&nbsp;')
144144
[PSCustomObject]@{
145145
File = $_.File
146146
Line = $_.Line
@@ -155,7 +155,7 @@ $missedForDisplay = $codeCoverage.CommandsMissed | Sort-Object -Property File, L
155155

156156
$executedForDisplay = $codeCoverage.CommandsExecuted | Sort-Object -Property File, Line | ForEach-Object {
157157
$command = '<pre><code class=''language-pwsh''>{0}</pre></code>' -f (Normalize-IndentationExceptFirst -Code $_.Command)
158-
$command = $command.Replace([Environment]::NewLine, '<br>').Replace(' ', '&nbsp;').Replace('{', '&#123;').Replace('}', '&#125;')
158+
$command = $command.Replace([Environment]::NewLine, '<br>').Replace(' ', '&nbsp;')
159159
[PSCustomObject]@{
160160
File = $_.File
161161
Line = $_.Line

0 commit comments

Comments
 (0)