DTW-DanWard / PowerShell-Beautifier

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

Add a space between stuff like 2>&1 |. #38

Closed m-kostrzewa closed 6 years ago

DTW-DanWard commented 6 years ago

Looks good. I needed to add a tweak in case the redirect operator is the last thing in the file - to make sure TokenIndex + 1 is less than SourceTokens.Count.

Thanks for all these test cases and fixes that I missed! I really appreciate it!

m-kostrzewa commented 6 years ago

@DTW-DanWard np :) I can't find a powershell formatter that is perfect for me so might as well help some project