Skip to content

Commit

Permalink
Fix bad regex microsoft#145265
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Apr 21, 2022
1 parent e4d0a1f commit 1e55117
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 @@ -139,7 +139,7 @@ export function prepareCommand(shell: string, args: string[], cwd?: string, env?
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 1e55117

Please sign in to comment.