Module:Infobox: Difference between revisions

use tostring() in getArgNums() - this is quicker than forcing concatenation of numbers
m>Mr. Stradivarius
(custom step degree for touchParameters)
m>Mr. Stradivarius on tour
(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 = ('' .. k):match('^' .. prefix .. '([1-9]%d*)$')
         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