Update - 1.4.0.73
EN: 1.4.0.73 CN: 1.4.0.74 JP: 1.4.0.77 KR: 1.4.0.80
This commit is contained in:
+10
-3
@@ -497,9 +497,16 @@ function orderedFormat(formatStr, ...)
|
||||
local args = {
|
||||
...
|
||||
}
|
||||
return (formatStr:gsub("{(%d+)}", function(index)
|
||||
index = tonumber(index) + 1
|
||||
return tostring(args[index])
|
||||
return (formatStr:gsub("{([^}]+)}", function(placeholder)
|
||||
local patterns = {".-_(%d+)$", "^(%d+)$"}
|
||||
for _, pattern in ipairs(patterns) do
|
||||
local num = placeholder:match(pattern)
|
||||
if num then
|
||||
local index = tonumber(num) + 1
|
||||
return tostring(args[index] or "")
|
||||
end
|
||||
end
|
||||
return "{" .. placeholder .. "}"
|
||||
end))
|
||||
end
|
||||
function clearFloat(a)
|
||||
|
||||
Reference in New Issue
Block a user