Permalink
Browse files

normalize root so replacing from filename works properly

  • Loading branch information...
1 parent 40c8653 commit f36ddabfdf4dd24aba61a71cf72619da27fe0689 @cpetzold cpetzold committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -18,7 +18,7 @@ module.exports = function(exportPath, patterns, options){
, minify = options.minify || false
, maxAge = options.maxAge || 86400
, exportPath = exportPath.replace(/\/$/,'')
- , root = options.root ? options.root.replace(/\/$/,'') : __dirname
+ , root = path.normalize(options.root ? options.root.replace(/\/$/,'') : __dirname)
, regexp = utils.toRegExp(exportPath, true)
, payload = new Expose()
, headers = {

0 comments on commit f36ddab

Please sign in to comment.