Fixed failing test

This commit is contained in:
Haim Ashkenazi 2022-02-05 17:09:06 +02:00
parent bf98b1bded
commit 3c2cea9754

View file

@ -123,7 +123,8 @@ Register-ArgumentCompleter -Native -CommandName 'my_app' -ScriptBlock {
$element = $commandElements[$i]
if ($element -isnot [StringConstantExpressionAst] -or
$element.StringConstantType -ne [StringConstantType]::BareWord -or
$element.Value.StartsWith('-')) {
$element.Value.StartsWith('-') -or
$element.Value -eq $wordToComplete) {
break
}
$element.Value