模块:Citation/CS1/Date validation:修订间差异

imported>Liangent
无编辑摘要
imported>Liangent
无编辑摘要
第249行: 第249行:
month = get_month_number (month);
month = get_month_number (month);
if 0 == month then return false; end
if 0 == month then return false; end
elseif date_string:match("^[1-9]%d%d%d?年$") then -- year; here accept either YYY or YYYY
year=date_string:match("(%d%d%d%d?)年");
if false == is_valid_year(year) then
return false;
end
-- END LOCAL
-- END LOCAL