Skip to content

Commit 41a6e73

Browse files
committed
Fix regex replacing single quote
1 parent 1ec1e2f commit 41a6e73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ export class TerminalInstance implements ITerminalInstance {
802802
this.title === 'powershell';
803803

804804
if (isPowerShell && (hasSpace || originalPath.indexOf('\'') !== -1)) {
805-
c(`& '${originalPath.replace('\'', '\'\'')}'`);
805+
c(`& '${originalPath.replace(/'/g, '\'\'')}'`);
806806
return;
807807
}
808808

0 commit comments

Comments
 (0)