-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove en-dashes and replace with correct hyphens #250
base: master
Are you sure you want to change the base?
Conversation
@KBerstene please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
@microsoft-github-policy-service agree |
In a lot of the
Invoke-RestMethod
calls, the hyphen (-
) characters are actually en-dash (–
) characters. If a function from these samples is copied into a PowerShell window, it usually converts to plain text and replaces the en-dash characters with hyphens. However, if the code is downloaded or copied into a program that accepts the en-dash characters, then the code is saved and imported into PowerShell (e.g. through a module file), theInvoke-RestMethod
command will fail with an error:This pull request removes all en-dash characters currently present in .ps1 files and replaces them with correct hyphens.