mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.format: Import unpack from table lib in Lua 5.2+
This commit is contained in:
parent
2ae9db48c5
commit
2facc56274
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
local tostring = tostring;
|
||||
local select = select;
|
||||
local unpack = unpack;
|
||||
local unpack = table.unpack or unpack; -- luacheck: ignore 113/unpack
|
||||
local type = type;
|
||||
|
||||
local function format(formatstring, ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue