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 =if id:match (pattern); -- attempt to get year, month and date from the identifierthen
local y, m, d = id:match (pattern); -- found a match, attempt to get year, month and date from the identifier
 
if m then -- m is nil when noid is the 8-digit matchform
if not is_valid_rxiv_date (y, m, d, 'mb') then -- validate the encoded date; 'mb' for medrxiv limit
break; -- date fail; break out early so we don't unset the err_msg_flagerror message
end
end
err_msg_flag = nil; -- we found a match so unset the error message
break; -- and done
end
end err_msg_flag = nil; -- we<err_msg_flag> foundremains aset matchhere andwhen dateno is valid so unset the err_msg_flagmatch
break; -- and done
end -- err_msg flag remains set here when no match
 
if err_msg_flag then
"https://tamilar.wiki/w/Module:Citation/CS1/Identifiers" இலிருந்து மீள்விக்கப்பட்டது