PSMinifier icon indicating copy to clipboard operation
PSMinifier copied to clipboard

PSMinifier removes too many parenthesis within list expressions

Open StartAutomating opened this issue 2 years ago • 0 comments

Compress-ScriptBlock -ScriptBlock { $c, $t, $id = 0, $allFiles.Count, $(Get-Random) }  # Fails (but should not)
Compress-ScriptBlock -ScriptBlock { $c, $t, $id = 0, $allFiles.Count, [Random]::new().Next() }  # works just fine

StartAutomating avatar Oct 05 '23 03:10 StartAutomating