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.
This topic is 3 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
owinsloe
Posts: 161
Last visit: Tue Mar 26, 2024 8:14 pm
Been upvoted: 1 time

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: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 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
SAPIEN Technologies, Inc.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 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
SAPIEN Technologies, Inc.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 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
SAPIEN Technologies, Inc.
This topic is 3 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.