choco icon indicating copy to clipboard operation
choco copied to clipboard

(#2410) Update to escape single quote as well as double quotes.

Open BlythMeister opened this issue 3 years ago • 2 comments

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.

BlythMeister avatar Aug 23 '22 09:08 BlythMeister

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 23 '22 09:08 CLAassistant