Module:Infobox: Difference between revisions
Content added Content deleted
(custom step degree for touchParameters) |
(use tostring() in getArgNums() - this is quicker than forcing concatenation of numbers) |
||
Line 29: | Line 29: | ||
local nums = {} |
local nums = {} |
||
for k, v in pairs(args) do |
for k, v in pairs(args) do |
||
local num = ( |
local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$') |
||
if num then table.insert(nums, tonumber(num)) end |
if num then table.insert(nums, tonumber(num)) end |
||
end |
end |