Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
debug return again
huh? its already number
Line 40:
if (matchDay == nil) then return input .. ' -> is not a recognized pattern match' end
--return matchDay .. '-' .. matchMonth .. '-' .. matchYear
 
--[[
local month = monthIndices[matchMonth:lower()]
if (month == nil) then return input .. ' -> does not have a recognized month name' end
 
local day = matchDay -- :tonumber() ???
local year = matchYear:tonumber()
 
return input .. ' -> parsed to ' .. year .. '-' .. month .. '-' .. day; -- won't add 0s
 
]]
end