提交 90bfb284 编写于 作者: D Daniel Imms

Fix more chars in terminal dnd

Fixes #27511
上级 529495d6
......@@ -301,7 +301,9 @@ export class TerminalPanel extends Panel {
return path;
}
path = path.replace(/(%5C|\\)/g, '\\\\');
const charsToEscape = [' ', '\'', '"', '?', ':', ';'];
const charsToEscape = [
' ', '\'', '"', '?', ':', ';', '!', '*', '(', ')', '{', '}', '[', ']'
];
for (let i = 0; i < path.length; i++) {
const indexOfChar = charsToEscape.indexOf(path.charAt(i));
if (indexOfChar >= 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册