Skip to content

Commit d85c213

Browse files
Escape cron values in Markdown inventory
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent bc50369 commit d85c213

3 files changed

Lines changed: 63 additions & 62 deletions

File tree

.github/scripts/Get-ProcessPSModuleWorkflowInventory.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ function ConvertTo-MarkdownCell {
629629
return ''
630630
}
631631

632-
(($Value -join ', ') -replace '\|', '\|' -replace '\r?\n', '<br>')
632+
(($Value -join ', ') -replace '\|', '\|' -replace '\*', '\*' -replace '\r?\n', '<br>')
633633
}
634634

635635
function ConvertTo-WorkflowInventoryMarkdown {

.github/scripts/tests/Get-ProcessPSModuleWorkflowInventory.Tests.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ Describe 'Get-ProcessPSModuleWorkflowInventory' {
139139
Get-Content -LiteralPath $markdownPath -Raw | Should -Match 'Example'
140140
Get-Content -LiteralPath $markdownPath -Raw | Should -Match 'v8'
141141
Get-Content -LiteralPath $markdownPath -Raw | Should -Match 'Matching target: 1/1'
142+
Get-Content -LiteralPath $markdownPath -Raw | Should -Match '0 0 \\\* \\\* \\\*'
142143
}
143144

144145
It 'records a parse error for a matching malformed workflow' {

0 commit comments

Comments
 (0)