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

Content deleted Content added
tweak protection for merge template
modify nbsp regex for conversion to dmy
Line 602:
//dates with embedded nbsp
ohc_regex(/(\D\W)@Month([ _]| )(\d{1,2},(?: | )\d{1,2}(?:\s(?:and|&|to|or)(?:[ _]| ))\d{1,2})(?=[^|\]\w])/gi, '$1$3$2@LMonth ');
ohc_regex(/(\D\W)@Month([ _]| |{{(?:break|nbsp)}})@Day,((?:[ _]| |{{(?:break|nbsp)}})@YYYY|)(?=[^|\]\w])/gi, '$1@Day$2@Month$3@Year');
 
//remove comma