提交 41a6e730 编写于 作者: D Daniel Imms

Fix regex replacing single quote

上级 1ec1e2f8
......@@ -802,7 +802,7 @@ export class TerminalInstance implements ITerminalInstance {
this.title === 'powershell';
if (isPowerShell && (hasSpace || originalPath.indexOf('\'') !== -1)) {
c(`& '${originalPath.replace('\'', '\'\'')}'`);
c(`& '${originalPath.replace(/'/g, '\'\'')}'`);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册