fix *nix paths

This commit is contained in:
Tobias Koppers 2012-05-07 09:01:01 +02:00
parent a090e12322
commit 134af89ce8
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ function resolve(context, identifier, options, type, callback) {
break;
}
if(identArray[0] === "." || identArray[0] === ".." || identArray[0] === "" || identArray[0].match(/^[A-Z]:$/i)) {
var pathname = identArray[0][0] === "." ? join(contextArray, identArray) : path.join.apply(path, identArray);
var pathname = identArray[0][0] === "." ? join(contextArray, identArray) : join(identArray, []);
if(type === "context") {
fs.stat(pathname, function(err, stat) {
if(err) {