diff --git a/Private/Write-KeyValue.ps1 b/Private/Write-KeyValue.ps1 index 2fc2b0e..0e5f8dd 100644 --- a/Private/Write-KeyValue.ps1 +++ b/Private/Write-KeyValue.ps1 @@ -2,6 +2,7 @@ function Write-KeyValue ($key, $value) { Write-Host -ForegroundColor Cyan -NoNewline $key $split = $value -split "(#{[a-z-_A-Z]*})" foreach ($s in $split){ + $s.trim() if($s -match "(#{[a-z-_A-Z]*})"){ Write-Host -ForegroundColor Red -NoNewline $s }