Content deleted Content added
Ohconfucius (talk | contribs) No edit summary |
Ohconfucius (talk | contribs) tweak to ordinals (and dates with leading zeros) |
||
Line 171:
//remove unlinked ordinal date formats
ohc_regex(/(\W)@
ohc_regex(/(\W)@DD@th?(\s(?:and|&|to|or)\s)@DD@th?(?:\sof\s?)?(?:[ ]| )@Month(?=\W)/gi, '$1@
ohc_regex(/(\W)(?:the |)@DD@th?(?:\sof)\s@Month,? @YYYY(?=\W\D)/gi, '$1@Day @LMonth @YYYY');
ohc_regex(/(\W)(?:the |)@DD@th?(?:\sof)\s@Month(?=\W\D)/gi, '$1@Day @LMonth');
ohc_regex(/(\W)@Day(?:\sof|)(?:[ _]| )@Month(?=[^\|\]\w\d])/gi, '$1@Day @LMonth');
ohc_regex(/(\W)@DD<sup>@th?<\/sup>(?:\sof\s?)?\s(@Month)(?=\W\D)/gi, '$1@Day @LMonth');
ohc_regex(/(\W)@Month\s(?:the\s)?@
ohc_regex(/(\W)(@month)\s(@day)((?:,\s@day){0,6}),?(\/|\s?[-–]\s?|\s(?:and|&|to|or)\s+?)@Day(?:,?(?:[ _]| )|\sof\s)?(\d{3,4}\W\D)/gi, '$1$2 $3$4$5@Day, $6');
ohc_regex(/(\W)@Month(?:[ ]| )(?:the\s)?@
ohc_regex(/(\W)@Month(?:[ ]| )(?:the\s)?@DD<sup>@th<\/sup>(?=[^\]\|\w\d]\D)/gi, '$1@LMonth @
// eliminating time of day
|