Module:Citation/CS1/Identifiers: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
sync from sandbox; |
rare 8-digit medrxiv without date; |
||
வரிசை 1,043:
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)
வரி 1,048 ⟶ 1,049:
for _, pattern in ipairs (patterns) do -- spin through the patterns looking for a match
local y, m, d = id:match (pattern); -- found a match, attempt to get year, month and date from the identifier
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
| |||