From 74d58359fa4db9bf44c1b6d301248c48bb7d8fd8 Mon Sep 17 00:00:00 2001 From: Raphael Pothin Date: Wed, 20 Sep 2023 02:09:54 +0000 Subject: [PATCH] Correction of expected format --- Scripts/ConvertTo-MarkdownTable.ps1 | 12 +++++++----- Scripts/Tests/ConvertTo-MarkdownTable.Tests.ps1 | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Scripts/ConvertTo-MarkdownTable.ps1 b/Scripts/ConvertTo-MarkdownTable.ps1 index 28ad8fa7..d294bb29 100644 --- a/Scripts/ConvertTo-MarkdownTable.ps1 +++ b/Scripts/ConvertTo-MarkdownTable.ps1 @@ -33,6 +33,12 @@ function ConvertTo-MarkdownTable { [psobject]$InputObject ) + Begin { + # Initialize variables + $headersDone = $false + $pattern = '(?