Skip to content

Commit 5bd9662

Browse files
StartAutomatingStartAutomating
authored andcommitted
Merge pull request #86 from ninmonkey/main
fix: `Turtle.get_Position` missing parenthesis on value ( fixes: #85 )
1 parent d6fcefa commit 5bd9662

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Turtle.types.ps1xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,9 +1750,10 @@ if ($chromeOutput -match '<img\ssrc="data:image/png;base64,(?<b64>[^"]+
17501750
<Name>Position</Name>
17511751
<GetScriptBlock>
17521752
if (-not $this.'.Position') {
1753-
$this | Add-Member -MemberType NoteProperty -Force -Name '.Position' -Value [pscustomobject]@{ X = 0; Y = 0 }
1753+
$this | Add-Member -MemberType NoteProperty -Force -Name '.Position' -Value ([pscustomobject]@{ X = 0; Y = 0 })
17541754
}
17551755
return $this.'.Position'
1756+
17561757
</GetScriptBlock>
17571758
<SetScriptBlock>
17581759
param([double[]]$xy)

0 commit comments

Comments
 (0)