You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I cut and paste the code directly from that web page (saved with VS Code) it works on my machine (tested in Win PowerShell 5.1). If you want to try the tokenize API all by itself (to confirm the error is/isn't happening), there's an example buried in the docs: https://github.com/DTW-DanWard/PowerShell-Beautifier/blob/master/docs/TokenizeExample.md
I'm guessing you have some type funky hidden character in that page/your copy of the source that it's choking on. If you use VS Code, there's a great extension you should install: Highlight Bad Chars. It does exactly what it sounds like - highlights in red any funky characters, usually Unicode characters like non-breaking white space, etc. https://marketplace.visualstudio.com/items?itemName=wengerk.highlight-bad-chars
Hi,
The following function returns the error below. Any ideas?
The function works perfectly well in PoSh 5.1 - I got it from an MS blog so it should be "good" PoSh:
https://devblogs.microsoft.com/scripting/use-powershell-to-work-with-any-ini-file/
Thanks,
Phil.
The text was updated successfully, but these errors were encountered: