diff --git a/completion/ps/task.ps1 b/completion/ps/task.ps1 index 08ef6c58..eba7631c 100644 --- a/completion/ps/task.ps1 +++ b/completion/ps/task.ps1 @@ -2,7 +2,7 @@ $scriptBlock = { param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters ) $reg = "\* ($commandName.+?):" $listOutput = $(task --list-all) - $listOutput | Select-String $reg -AllMatches | ForEach-Object { $_.Matches.Groups[1].Value + " " } + $listOutput | Select-String $reg -AllMatches | ForEach-Object { $_.Matches.Groups[1].Value } } Register-ArgumentCompleter -CommandName task -ScriptBlock $scriptBlock