Skip to content

Commit 134af89

Browse files
committed
fix *nix paths
1 parent a090e12 commit 134af89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/resolve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function resolve(context, identifier, options, type, callback) {
2727
break;
2828
}
2929
if(identArray[0] === "." || identArray[0] === ".." || identArray[0] === "" || identArray[0].match(/^[A-Z]:$/i)) {
30-
var pathname = identArray[0][0] === "." ? join(contextArray, identArray) : path.join.apply(path, identArray);
30+
var pathname = identArray[0][0] === "." ? join(contextArray, identArray) : join(identArray, []);
3131
if(type === "context") {
3232
fs.stat(pathname, function(err, stat) {
3333
if(err) {

0 commit comments

Comments
 (0)