We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d550d5 commit a341836Copy full SHA for a341836
Join-PipeScript.ps1
@@ -120,7 +120,8 @@ function Join-PipeScript
120
if ($BlockType -contains 'param') {
121
foreach ($combined in $AllScriptBlocks.Ast.ParamBlock) {
122
if (-not $combined.Parent.Extent) { continue }
123
- $combined.Parent.Extent.ToString().Substring(0, $combined.Extent.StartOffset)
+ $offsetDifference = $combined.Extent.StartOffset - $combined.Parent.Extent.StartOffset
124
+ $combined.Parent.Extent.ToString().Substring(0, $offsetDifference) -replace '^[\r\n]+\{'
125
}
126
127
# Start the param block
0 commit comments