1
0
forked from x/volcanos
This commit is contained in:
root 2024-10-16 10:30:52 +08:00
parent b8eefca8f5
commit b11fba0426

View File

@ -23,7 +23,7 @@ Volcanos("core", {
}
}
}
var node = data, keys = key.split(nfs.PT); while (node && keys.length > 0) {
var node = data, keys = key.split(nfs.PT); while (node && keys.length > 0) { if (typeof node == "string") { return }
if (keys[0] == "-1") { keys[0] = node.length-1 } node = node[keys[0]], keys = keys.slice(1)
} return node == undefined? data[key]: node
},