Auto expand on paste sensitive to spaces

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
owinsloe
Posts: 96
Joined: Tue Jul 10, 2012 10:37 am

Auto expand on paste sensitive to spaces

Post by owinsloe »

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.181
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19041.0

The following where-object will not expand during a paste, due to the space between ? and the left open brace
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | ? { $_ })
however...
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | ?{ $_ })
does expand to
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | Where-Object{ $_ })

User avatar
brittneyr
Site Admin
Posts: 615
Joined: Thu Jun 01, 2017 7:20 am
Answers: 6
Been upvoted: 5 times

Re: Auto expand on paste sensitive to spaces

Post by brittneyr »

We are currently look into this and will get back to you soon.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
brittneyr
Site Admin
Posts: 615
Joined: Thu Jun 01, 2017 7:20 am
Answers: 6
Been upvoted: 5 times

Re: Auto expand on paste sensitive to spaces

Post by brittneyr »

I've been able to reproduce this and have filed a bug report with the development team. When I have more information, I will update you.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
brittneyr
Site Admin
Posts: 615
Joined: Thu Jun 01, 2017 7:20 am
Answers: 6
Been upvoted: 5 times

Re: Auto expand on paste sensitive to spaces

Post by brittneyr »

Please try service build 5.7.182 and let me know if this issue has been resolved.
Brittney Ryn
SAPIEN Technologies, Inc.