Permalink
Browse files

add support for windows path separator

  • Loading branch information...
1 parent 3aaea35 commit 57f89596d94e567988b086bd071f4efa478e9ee2 @nightwing nightwing committed Apr 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dryice/index.js
View
@@ -802,8 +802,8 @@ function findModuleAt(module, base, somePath) {
}
function relative(pathA, pathB) {
- pathA = pathA.split('/');
- pathB = pathB.split('/');
+ pathA = pathA.split(/[\/\\]+/);
+ pathB = pathB.split(/[\/\\]+/);
var aLen = pathA.length;
var bLen = pathB.length;

0 comments on commit 57f8959

Please sign in to comment.