Added Capability to escape |, < and >in addition to & and ^

This commit is contained in:
sksaifuddin 2019-10-16 20:54:26 +05:30
parent c144ea6c14
commit 35f25f49e8

View file

@ -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}" && `;
}
}