Mercurial > prosody-hg
diff util/format.lua @ 12589:39ae08180c81
compat: Remove handling of Lua 5.1 location of 'unpack' function
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 11 Jul 2022 19:07:38 +0200 |
| parents | 0f4feaf9ca64 |
| children | 5eaf77114fdb |
line wrap: on
line diff
--- a/util/format.lua Mon Jul 11 17:32:13 2022 +0200 +++ b/util/format.lua Mon Jul 11 19:07:38 2022 +0200 @@ -6,7 +6,7 @@ -- Provides some protection from e.g. CAPEC-135, CWE-117, CWE-134, CWE-93 local tostring = tostring; -local unpack = table.unpack or unpack; -- luacheck: ignore 113/unpack +local unpack = table.unpack; local pack = require "util.table".pack; -- TODO table.pack in 5.2+ local valid_utf8 = require "util.encodings".utf8.valid; local type = type;
