From 7bd7148490e132c88391ef6d0b99bdc12235eb9d Mon Sep 17 00:00:00 2001 From: clr2of8 Date: Sat, 25 Nov 2023 09:14:54 -0600 Subject: [PATCH] trim newline --- Private/Write-KeyValue.ps1 | 1 + 1 file changed, 1 insertion(+) 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 }