Escape dynamic path.
- Lingua principale
- JavaScript
- Stelle
- 12
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Cmd.exe and even Git Bash don't escape the dynamic part of the new command line:
`$ glob-run js-beautify --config H:\.jsbeautifyrc -r "**/*.html"`
```
>> js-beautify --config H:.jsbeautifyrc -r blocks/block-request-quotation.html
beautified blocks\block-request-quotation.html - unchanged
>> js-beautify --config H:.jsbeautifyrc -r blocks/block-return-packaging.html
beautified blocks\block-return-packaging.html - unchanged
>> js-beautify --config H:.jsbeautifyrc -r blocks/block-search-results (class selection).html
C:\Users\name\Documents\code\company\buildkit> "C:\Users\name\AppData\Roaming\npm\\node.exe" "C:\Users\name\AppData\Roaming\npm\\node_modules\js-beautify\js\bin\js-beautify.js" --config H:.jsbeautifyrc -r blocks/block-search-results (class selection).html
.html was unexpected at this time.
exec error: Error: Command failed: js-beautify --config H:.jsbeautifyrc -r blocks/block-search-results (class selection).html
.html was unexpected at this time.
```
`js-beautify -r "blocks/block-search-results (class selection).html"` should work cross-platform.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.