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

Content deleted Content added
Undid revision 1087656526 by Ohconfucius (talk); //rem nested date template in access date parameter
Tag: Reverted
space
Tag: Reverted
Line 319:
ohc_regex(/\{\{date\|@YYYY\/@MM\/@DD\}\}/gi, "@YYYY-@MM-@DD"); //remove {{date}} template while rectifying slash dates within the template
ohc_regex(/\{\{date\|(@DD[\-\s]@Mon|@Mon[\-\s]@DD)\}\}/gi, "@Day @Month");
regex(/\|\s?access-?date=\{\{date\|\{\{date\}\}\|l?(?:[dmy]{3}|iso|none|link)?\}\}/gi, ''); //rem nested date template in access date parameter
regex(/\{\{date\|([^}\|]+)(?:\|l?(?:[dmy]{3}|iso|none|link))?\}\}/gi, '$1');
ohc_regex(/[ ]*\{\{accessdate\|@YYYY-@MM-@DD[ ]*\}\}/gi, " Retrieved @YYYY-@MM-@DD");