Merge pull request #117138 from shskwmt/fix/116822
Fixes #116822: Remove escaping whitespace characters
This commit is contained in:
commit
e4a69193d0
1 changed files with 0 additions and 3 deletions
|
@ -237,9 +237,6 @@ export function escapeNonWindowsPath(path: string): string {
|
|||
if (newPath.indexOf('\\') !== 0) {
|
||||
newPath = newPath.replace(/\\/g, '\\\\');
|
||||
}
|
||||
if (newPath.indexOf(' ') !== -1) {
|
||||
newPath = newPath.replace(/ /g, '\\ ');
|
||||
}
|
||||
const bannedChars = /[\`\$\|\&\>\~\#\!\^\*\;\<\"\']/g;
|
||||
newPath = newPath.replace(bannedChars, '');
|
||||
return `'${newPath}'`;
|
||||
|
|
Loading…
Reference in a new issue