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

Content deleted Content added
protection tweak - url
tweak to ordinals
Line 172:
//remove unlinked ordinal date formats
ohc_regex(/(\W)@Day, @Day(\s(?:and|&|to|or)\s)@Day(?:\sof\s?)?(?:[ ]| )@Month(?=\W\D)/gi, '$1@Day1, @Day2$2@Day3 @LMonth');
ohc_regex(/(\W)@Day(\s(?:and|&|to|or)\s)@Day(?:\sof\s?)?(?:[ ]| )@Month(?=\W\D)/gi, '$1@Day1DD1$2@Day2DD2 @LMonth');
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');