choco
choco copied to clipboard
(#2410) Update to escape single quote as well as double quotes.
Description Of Changes
Update to escape single quote as well as double quotes.
Motivation and Context
When a saved parameter has a single quote in it the quoted string passed is incorrectly formatted
Testing
Change Types Made
- [x] Bug fix (non-breaking change)
- [ ] Feature / Enhancement (non-breaking change)
- [ ] Breaking change (fix or feature that could cause existing functionality to change)
- [ ] PowerShell code changes.
Related Issue
Fixes #2410
Change Checklist
- [ ] Requires a change to the documentation
- [ ] Documentation has been updated
- [ ] Tests to cover my changes, have been added
- [ ] All new and existing tests passed.
- [ ] PowerShell v2 compatibility checked.