Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Commit

Permalink
add support for windows path separator
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Apr 23, 2012
1 parent 3aaea35 commit 57f8959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dryice/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 57f8959

Please sign in to comment.