User:Ohconfucius/test/MOSNUM dates code.js: Difference between revisions

Content deleted Content added
//disabled conversion of yyyy-mm-dd in citation templates (except publication date)
//disabled conversion of yyyy-mm-dd in citation templates (except publication date)
Line 471:
{
//ISO dates within single citation
// ohc_regex(/(\|\s*(?:publication|archive|access|air|designation\d?_|)-?date\s*=\s*)@YYYY[-–]@MM[-–]@DD(?=\W\D)/gi, "$1@Day @Month @YYYY");
ohc_regex(/(\|\s*(?:publication|)-?date\s*=\s*)@YYYY[-–]@MM[-–]@DD(?=\W\D)/gi, "$1@Day @Month @YYYY");
}
 
Line 477 ⟶ 478:
{
//ISO dates within single citation
// ohc_regex(/(\|\s*(?:publication|archive|access|air|designation\d?_|)-?date\s*=\s*)@YYYY[-–]@MM[-–]@DD(?=\W\D)/gi, "$1@Month @Day, @YYYY");
ohc_regex(/(\|\s*(?:publication|)-?date\s*=\s*)@YYYY[-–]@MM[-–]@DD(?=\W\D)/gi, "$1@Month @Day, @YYYY");
}