Safer relative paths
This commit is contained in:
1 parent
d20e9ca8df
commit
04639842f2
2 files changed
+2
-2
No files matched your search
@@ -28,7 +28,7 @@ function resolve(fromName, toName) {
|
||||
}
|
||||
var commonDepth = 1;
|
||||
var fromLength = fromParts.length;
|
||||
while (commonDepth < fromLength - 1) {
|
||||
while (commonDepth < fromLength - 2) {
|
||||
if (fromParts[commonDepth] === toParts[commonDepth]) {
|
||||
++commonDepth;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user