Permalink
Browse files

Makes root optional for backslashed windows-paths too

  • Loading branch information...
1 parent c27fbed commit ae1ec1638de4cd667c5f31a09cc1cfcc11d4d8ee @oleics oleics committed Mar 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mu.js
View
@@ -12,7 +12,7 @@ mu.root = process.cwd();
mu.cache = {};
mu.fs = function (filename, callback) {
- filename = filename.indexOf('/') === 0 ? filename : path.join(mu.root, filename);
+ filename = filename.indexOf('/') === 0 || filename.indexOf(':\\') === 1 ? filename : path.join(mu.root, filename);
fs.readFile(filename, 'utf8', callback);
}

0 comments on commit ae1ec16

Please sign in to comment.