[Pkg-javascript-commits] [node-parents] 11/29: fix for c: and /

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 20 13:47:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-parents.

commit 603ae8864acc88c735eb5bd2ad3d3a3a9e83f7ad
Author: James Halliday <mail at substack.net>
Date:   Thu Jul 12 01:55:54 2012 -0700

    fix for c: and /
---
 index.js     | 2 +-
 package.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index f07a220..13908a5 100644
--- a/index.js
+++ b/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;
 }
diff --git a/package.json b/package.json
index 13da515..8e59024 100644
--- a/package.json
+++ b/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" : {},

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-parents.git



More information about the Pkg-javascript-commits mailing list