Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add support for windows path separator

  • Loading branch information...
commit 57f89596d94e567988b086bd071f4efa478e9ee2 1 parent 3aaea35
Harutyun Amirjanyan nightwing authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dryice/index.js
4 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;
Please sign in to comment.
Something went wrong with that request. Please try again.