Content deleted Content added
update DOI range (attempted); see talk |
reset changes list; |
||
Line 1:
--[[
History of changes since last sync: 2023-
]]
Line 1,054 ⟶ 1,049:
local patterns = {
'%d%d%d%d%d%d%d%d$', -- simple 8-digit identifier; these should be relatively rare
'^10%.1101/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d%d%dv%d+$', -- y.m.d. date + 8-digit identifier + version (2020-01-01 and later)
'^10%.1101/(20%d%d)%.(%d%d)%.(%d%d)%.%d%d%d%d%d%d%d%d$', -- y.m.d. date + 8-digit identifier (2020-01-01 and later)
Line 1,059 ⟶ 1,055:
for _, pattern in ipairs (patterns) do -- spin through the patterns looking for a match
if id:match (pattern) then
local y, m, d = id:match (pattern); if m then
if not is_valid_rxiv_date (y, m, d, '
break;
end
end
err_msg_flag = nil; -- we found a match so unset the error message
end
end
▲ break; -- and done
if err_msg_flag then
|