allow JSDoc to run from a path containing one or more spaces (#347)

This commit is contained in:
Jeff Williams 2013-02-18 21:30:17 -08:00
parent 956c70becc
commit 9d13a1e6bb

View File

@ -58,7 +58,7 @@ var vm = exports.vm = (function() {
* @return {object} An object containing VM-specific functions for the requested module.
*/
exports.getModule = function(modulePath) {
modulePath = [__dirname, vm, modulePath].join('/');
modulePath = [__dirname, vm, modulePath].join('/').replace(/ /g, '%20');
if (os.platform() === 'win32') {
modulePath = pathToUri(modulePath);
}