Skip to content

Commit

Permalink
Escape quotes in arguments for PowerShell
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianLW committed Jul 24, 2023
1 parent ba6e43b commit bf3764a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const baseOpen = async options => {
}

if (appArguments.length > 0) {
appArguments = appArguments.map(arg => `"\`"${arg}\`""`);
appArguments = appArguments.map(arg => `"\`"${String.prototype.replaceAll.call(arg, '"', '`"')}\`""`);

Check failure on line 205 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 20

Avoid using extended native objects

Check failure on line 205 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 18

Avoid using extended native objects

Check failure on line 205 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Avoid using extended native objects

Check failure on line 205 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Avoid using extended native objects
encodedArguments.push('-ArgumentList', appArguments.join(','));
}

Expand Down

0 comments on commit bf3764a

Please sign in to comment.