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

Content deleted Content added
tweak to 'eliminating dd-mm-yyyy dates'
fix - access dates vs leading zeros
Line 258:
//remove leading zero from 'Retrieved' date, replace 'accessed'
ohc_regex(/(?:url |link |last )(?:Retrieved|Accessed) /gi, "Retrieved ");
ohc_regex(/(?:Retrieved|Accessed)(?: on |:? )@Month\s@ZDDD,?\s@YYYY/gi, "Retrieved @LMonth @Day, @YYYY");
ohc_regex(/(?:Retrieved|Accessed)(?: on |:? )@ZDDD\s@Month\s@YYYY/gi, "Retrieved @Day @LMonth @YYYY");
 
// ohc_regex(/(?:Retrieved|Accessed)(?: on |:? )@Month\s@ZDDD,?/gi, "Retrieved @LMonth @Day");
// ohc_regex(/(?:Retrieved|Accessed)(?: on |:? )@ZDDD\s@Month/gi, "Retrieved @Day @LMonth");
 
ohc_regex(/(?:Accessed)(?: on |:? )(@yyyy-@mm-@dd)(?=\D)/gi, 'Retrieved $1');