mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
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.
This commit is contained in:
parent
70e4b13d0e
commit
e9a9633aec
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue