diff --git a/bin/styledocco b/bin/styledocco index a603893..684333d 100755 --- a/bin/styledocco +++ b/bin/styledocco @@ -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); };