Permalink
Browse files

fix dir path in load function for windows

  • Loading branch information...
1 parent 6ff7cea commit f6aa50ab18dd6225b7b7f4f19de1a9b1c583bdb3 @Shogun147 committed Aug 31, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 .gitignore
  2. +1 −1 lib/utils.js
View
3 .gitignore
@@ -1,3 +1,4 @@
node_modules/
test/
-.DS_Store
+.DS_Store
+.settings
View
2 lib/utils.js
@@ -231,7 +231,7 @@ module.exports = {
files.forEach(function(filename) {
var file = path + dir + filename;
- var dirname = dir.replace(new RegExp('^'+ basedir.replace('\\', '\\\\') +''), '');
+ var dirname = dir.replace(new RegExp('^'+ basedir.replace('\\', '\\\\') +''), '').replace(/\\/g, '/');
var fname = Path.basename(filename, Path.extname(filename));
Fs.stat(file, function(error, stat) {

0 comments on commit f6aa50a

Please sign in to comment.