Escape JavaScript executables in commands

This commit is contained in:
w0rp
2017-05-07 16:19:40 +01:00
parent 4228c503f4
commit 05bd4f591c
5 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ function! ale_linters#javascript#flow#GetCommand(buffer) abort
return ''
endif
return ale_linters#javascript#flow#GetExecutable(a:buffer)
return fnameescape(ale_linters#javascript#flow#GetExecutable(a:buffer))
\ . ' check-contents --respect-pragma --json --from ale %s'
endfunction