Change PowerShell double quotes escape
It changes the way privacy.sexy escape double quotes inside batch command when running PowerShell scripts as an argument to PowerShell.exe. It uses more robust and stable way offering support for wider use-cases.
This commit is contained in:
@@ -10,7 +10,7 @@ describe('EscapeDoubleQuotes', () => {
|
||||
{
|
||||
name: 'using "',
|
||||
input: 'hello "world"',
|
||||
expectedOutput: 'hello \\"world\\"',
|
||||
expectedOutput: 'hello "^""world"^""',
|
||||
},
|
||||
{
|
||||
name: 'not using any double quotes',
|
||||
@@ -20,7 +20,7 @@ describe('EscapeDoubleQuotes', () => {
|
||||
{
|
||||
name: 'consecutive double quotes',
|
||||
input: '""hello world""',
|
||||
expectedOutput: '\\"\\"hello world\\"\\"',
|
||||
expectedOutput: '"^"""^""hello world"^"""^""',
|
||||
},
|
||||
{
|
||||
name: 'returns undefined when if input is undefined',
|
||||
|
||||
Reference in New Issue
Block a user