Safer relative paths
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ol",
|
"name": "ol",
|
||||||
"version": "3.21.0-beta.1",
|
"version": "3.21.0-beta.2",
|
||||||
"description": "OpenLayers",
|
"description": "OpenLayers",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ function resolve(fromName, toName) {
|
|||||||
}
|
}
|
||||||
var commonDepth = 1;
|
var commonDepth = 1;
|
||||||
var fromLength = fromParts.length;
|
var fromLength = fromParts.length;
|
||||||
while (commonDepth < fromLength - 1) {
|
while (commonDepth < fromLength - 2) {
|
||||||
if (fromParts[commonDepth] === toParts[commonDepth]) {
|
if (fromParts[commonDepth] === toParts[commonDepth]) {
|
||||||
++commonDepth;
|
++commonDepth;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user