「モジュール:Citation/CS1/Identifiers/sandbox」の版間の差分

削除された内容 追加された内容
en:Module:Citation/CS1/Identifiers oldid=1170046896 より更新
NAIDの検査を強化する(11桁もしくは12桁の整数、かつ最上位の桁が0以外であれば適合)。
1,131行目:
--[[--------------------------< N A I D >----------------------------------------------------------------------
 
NAID must be alleleven or twelve digits starts with non-zero.
 
]]
1,142行目:
prefix = handler.prefix, id = id, separator = handler.separator, encode = handler.encode});
matched = id:match ("[^[1-9]%d]%d%d%d%d%d%d%d%d%d%d?$"); -- if NAID has anything but digits (nil if only digits)
if not matched then
text = text .. ' ' .. set_message ('err_bad_naid'); -- set an error message
options.coins_list_t['NAID'] = nil; -- when error, unset so not included in COinS