diff options
author | Kim Alvefur <zash@zash.se> | 2023-06-30 18:45:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-06-30 18:45:18 +0200 |
commit | e9a9633aec324f63786ed4da713d14dbb4c7a883 (patch) | |
tree | 8b8a13b0124c21012a3ef84a1e8c944e71f185a7 /teal-src | |
parent | 70e4b13d0e8eab8cf058c2db5750ee9bd5dababf (diff) | |
download | prosody-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')
-rw-r--r-- | teal-src/prosody/util/jsonpointer.tl | 2 |
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) |