aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/prosody
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-06-30 18:45:18 +0200
committerKim Alvefur <zash@zash.se>2023-06-30 18:45:18 +0200
commite9a9633aec324f63786ed4da713d14dbb4c7a883 (patch)
tree8b8a13b0124c21012a3ef84a1e8c944e71f185a7 /teal-src/prosody
parent70e4b13d0e8eab8cf058c2db5750ee9bd5dababf (diff)
downloadprosody-e9a9633aec324f63786ed4da713d14dbb4c7a883.tar.gz
prosody-e9a9633aec324f63786ed4da713d14dbb4c7a883.zip
util.jsonpointer: Change function prototype to allow anything
But anything that's not a table can't be resolved into, which could happen in the middle, so eh.
Diffstat (limited to 'teal-src/prosody')
-rw-r--r--teal-src/prosody/util/jsonpointer.tl2
1 files changed, 1 insertions, 1 deletions
diff --git a/teal-src/prosody/util/jsonpointer.tl b/teal-src/prosody/util/jsonpointer.tl
index af29bda0..5ea99732 100644
--- a/teal-src/prosody/util/jsonpointer.tl
+++ b/teal-src/prosody/util/jsonpointer.tl
@@ -9,7 +9,7 @@ local function unescape_token(escaped_token : string) : string
return unescaped
end
-local function resolve_json_pointer(ref : table, path : string) : any, ptr_error
+local function resolve_json_pointer(ref : any, path : string) : any, ptr_error
local ptr_len = #path+1
for part, pos in path:gmatch("/([^/]*)()") do
local token = unescape_token(part)