mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +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) {
|
if (value === null) {
|
||||||
command += `set "${key}=" && `;
|
command += `set "${key}=" && `;
|
||||||
} else {
|
} else {
|
||||||
value = value.replace(/[\^\&]/g, s => `^${s}`);
|
value = value.replace(/[\^\&\|\<\>]/g, s => `^${s}`);
|
||||||
command += `set "${key}=${value}" && `;
|
command += `set "${key}=${value}" && `;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue