Content deleted Content added
add m d - d y |
add hyphens and stuff |
||
Line 193:
-- Time period - a.m./p.m. (before letters)
if (foundPositionStart) then
currentPosition = foundPositionEnd + 1 -- this is our new start ___location
Line 200:
-- Word
if (foundPositionStart) then
currentPosition = foundPositionEnd + 1 -- this is our new start ___location
Line 222:
-- Dash with possible whitespace or Date separator (dash without whitespace)
if (foundPositionStart) then
currentPosition = foundPositionEnd + 1 -- this is our new start ___location
if (
return ELEMENT_DATESEPARATOR, foundMatch, (currentPosition > #seekString)
else
Line 232:
end
end
-- Same by entity code - –
foundPositionStart, foundPositionEnd, foundMatch = seekString:find('^(%s*%&[nm]dash;%s*)', currentPosition)
if (foundPositionStart) then
currentPosition = foundPositionEnd + 1 -- this is our new start ___location
return ELEMENT_DASH, foundMatch, (currentPosition > #seekString)
end
-- Time separator (colon without whitespace)
if (foundPositionStart) then
currentPosition = foundPositionEnd + 1 -- this is our new start ___location
Line 241 ⟶ 246:
-- Comma and any following whitespace
if (foundPositionStart) then
currentPosition = foundPositionEnd + 1 -- this is our new start ___location
Line 248 ⟶ 253:
-- Whitespace (after all others that capture whitespace)
if (foundPositionStart) then
currentPosition = foundPositionEnd + 1 -- this is our new start ___location
|