From 9d13a1e6bbf8d583d60ce41fa3a8e7e8658e93ec Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Mon, 18 Feb 2013 21:30:17 -0800 Subject: [PATCH] allow JSDoc to run from a path containing one or more spaces (#347) --- lib/jsdoc/util/vm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jsdoc/util/vm.js b/lib/jsdoc/util/vm.js index 61279b14..eb7048b1 100644 --- a/lib/jsdoc/util/vm.js +++ b/lib/jsdoc/util/vm.js @@ -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); }