Browse files

fix for c: and /

  • Loading branch information...
1 parent b5fe51f commit 603ae8864acc88c735eb5bd2ad3d3a3a9e83f7ad @substack committed Jul 12, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.js
  2. +1 −1 package.json
View
2 index.js
@@ -24,6 +24,6 @@ module.exports = function (cwd, opts) {
.slice(1)
.reverse()
;
- if (res[0] === '/') return ['/'];
+ if (res[0] === res[1]) return [ res[0] ];
return res;
}
View
2 package.json
@@ -1,6 +1,6 @@
{
"name" : "parents",
- "version" : "0.0.0",
+ "version" : "0.0.1",
"description" : "return all the parent directories for a directory",
"main" : "index.js",
"bin" : {},

0 comments on commit 603ae88

Please sign in to comment.