branch | 0.12 |
changeset 12500 | 87c3d45208ef |
parent 12135 | b4c0efff8dd3 |
--- a/teal-src/util/jsonpointer.tl Sun May 08 18:03:44 2022 +0200 +++ b/teal-src/util/jsonpointer.tl Sun May 08 18:04:50 2022 +0200 @@ -24,7 +24,7 @@ elseif idx is integer then local i = tonumber(token) if token == "-" then i = #ref + 1 end - new_ref = ref[i] + new_ref = ref[i+1] else return nil, "invalid-table" end