diff --git a/Gruntfile.js b/Gruntfile.js index c6a5fd4f43..756b6de399 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -10,7 +10,7 @@ var path = require('path'), fs = require('fs'), _ = require('lodash'), escapeChar = process.platform.match(/^win/) ? '^' : '\\', - cwd = process.cwd().replace(' ', escapeChar + ' '), + cwd = process.cwd().replace(/( |\(|\))/g, escapeChar + '$1'), buildDirectory = path.resolve(cwd, '.build'), distDirectory = path.resolve(cwd, '.dist'),