Software /
code /
prosody
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 |
parent | 12573:0f4feaf9ca64 |
child | 12590: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;