mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-18 06:28:40 -09:00
Fix space escaping in paths dragged onto the icon (#545)
This commit is contained in:
parent
7e941b0451
commit
7d765d531e
1 changed files with 1 additions and 1 deletions
|
|
@ -192,7 +192,7 @@ export function openFile (path) {
|
||||||
// We need to use 'php-escape-shell' property this way
|
// We need to use 'php-escape-shell' property this way
|
||||||
// until this eslint issue will be fixed:
|
// until this eslint issue will be fixed:
|
||||||
// https://github.com/eslint/eslint/issues/6755
|
// https://github.com/eslint/eslint/issues/6755
|
||||||
let command = shellEscape.php_escapeshellcmd(path);
|
let command = shellEscape.php_escapeshellcmd(path).replace(/ /g, '\\ ');
|
||||||
if (stats.isDirectory()) {
|
if (stats.isDirectory()) {
|
||||||
command = `cd ${command}\n`;
|
command = `cd ${command}\n`;
|
||||||
} else if (stats.isFile() && isExecutable(stats)) {
|
} else if (stats.isFile() && isExecutable(stats)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue