mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Added Capability to escape |, < and >in addition to & and ^
This commit is contained in:
parent
c144ea6c14
commit
35f25f49e8
|
@ -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}" && `;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue