DTW-DanWard / PowerShell-Beautifier

A whitespace reformatter and code cleaner for Windows PowerShell and PowerShell Core
MIT License
333 stars 38 forks source link

Dot notation on Hash Table reference. #49

Open adonchey opened 5 years ago

adonchey commented 5 years ago

$test = @{ "First Name" = "Bob"; "Last Name" = "Smith" } Write-Host "First Name : " $test."First Name" Write-Host "Last Name : " $test."Last Name"

gets changed to

$test = @{ "First Name" = "Bob"; "Last Name" = "Smith" } Write-Host "First Name : " $test. "First Name" Write-Host "Last Name : " $test. "Last Name"

it puts a space between $test. and "First Name"/"Last Name".

adonchey commented 5 years ago

My fix was to comment out line 1026 and 1028 in DTW.PS.Beautifier.Main.psm1.