Skip to content

Commit

Permalink
Undo previous commit: Fixes jacobrask#124 for Node versions < 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
RonaldTreur committed Dec 1, 2014
1 parent d8ae60b commit 0cd73e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/styledocco
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var commonprefix = function(arr) {
}
return res;
});
var lastSlash = prefix.lastIndexOf(path.sep || '/');
var lastSlash = prefix.lastIndexOf(path.sep);
return lastSlash === -1 ? prefix : prefix.substr(0, lastSlash+1);
};

Expand Down

0 comments on commit 0cd73e4

Please sign in to comment.