Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
pm match
fix? again
Line 101:
 
function periodHourAdd(period)
if (period == 'pm' or period == 'p.match(m' or period == 'pm.' or period == '%s*p%.?m%.?')) then -- pmrandom '.' is pattern match onlyartifact
return 12
else
Line 142:
 
-- Time period - a.m./p.m. (before letters)
local foundPositionStart, foundPositionEnd, foundMatch = seekString:find('^(%s*([ap]%.?m%.?)', currentPosition)
if (foundPositionStart) then
currentPosition = foundPositionEnd + 1 -- this is our new start ___location