Skip to content

Commit

Permalink
Merge pull request #82704 from sksaifuddin/fix/78014/Fix-Special-Char…
Browse files Browse the repository at this point in the history
…acter

Fix #78014 Added Capability to escape |, < and >in addition to & and ^
  • Loading branch information
weinand authored Oct 17, 2019
2 parents 833f443 + 6b37647 commit 68e00d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/debug/node/terminals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export function prepareCommand(args: DebugProtocol.RunInTerminalRequestArguments
if (value === null) {
command += `set "${key}=" && `;
} else {
value = value.replace(/[\^\&]/g, s => `^${s}`);
value = value.replace(/[\^\&\|\<\>]/g, s => `^${s}`);
command += `set "${key}=${value}" && `;
}
}
Expand Down

0 comments on commit 68e00d7

Please sign in to comment.