Skip to content

Commit

Permalink
trim newline
Browse files Browse the repository at this point in the history
  • Loading branch information
clr2of8 committed Nov 25, 2023
1 parent 9239709 commit 7bd7148
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Private/Write-KeyValue.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7bd7148

Please sign in to comment.