mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
allow JSDoc to run from a path containing one or more spaces (#347)
This commit is contained in:
parent
956c70becc
commit
9d13a1e6bb
@ -58,7 +58,7 @@ var vm = exports.vm = (function() {
|
|||||||
* @return {object} An object containing VM-specific functions for the requested module.
|
* @return {object} An object containing VM-specific functions for the requested module.
|
||||||
*/
|
*/
|
||||||
exports.getModule = function(modulePath) {
|
exports.getModule = function(modulePath) {
|
||||||
modulePath = [__dirname, vm, modulePath].join('/');
|
modulePath = [__dirname, vm, modulePath].join('/').replace(/ /g, '%20');
|
||||||
if (os.platform() === 'win32') {
|
if (os.platform() === 'win32') {
|
||||||
modulePath = pathToUri(modulePath);
|
modulePath = pathToUri(modulePath);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user