Software /
code /
prosody
Diff
util/jsonpointer.lua @ 12802:4a8740e01813
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 12 Dec 2022 07:10:54 +0100 |
parent | 12781:22066b02887f |
line wrap: on
line diff
--- a/util/jsonpointer.lua Mon Dec 12 20:40:23 2022 +0100 +++ b/util/jsonpointer.lua Mon Dec 12 07:10:54 2022 +0100 @@ -1,6 +1,4 @@ -local m_type = math.type or function (n) - return n % 1 == 0 and n <= 9007199254740992 and n >= -9007199254740992 and "integer" or "float"; -end; +local m_type = math.type; local function unescape_token(escaped_token) local unescaped = escaped_token:gsub("~1", "/"):gsub("~0", "~")