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

Content deleted Content added
Undid revision 514289061 by Ohconfucius (talk)
retrain redirects
Line 555:
regex(/([\s\(]“)([^”\n]*)(”)/gi, protect_function);
//retraining redirects containing a date and some text
regex(/(\[\[)(September 3 Society)(\]\]|\|)/gi, '$1Jiusan Society$2');
regex(/(\[\[)(June 4th incident)(\]\]|\|)/gi, '$1Tiananmen Square protests of 1989$2');
 
//protect all links containing a date and some text
ohc_regex(/(\[\[)(\s*\w[^\]\|\n]+?@day[^\]\|\n]+?@fullmonth[^\]\|\n]*)(\]\]|\|)/gi, protect_function);
Line 590 ⟶ 594:
ohc_regex(/(Live at [^\|\]]* [1-3]\d)( @fullmonth)/gi, "$1♫$2");
ohc_regex(/(Live at [^\|\]]* @fullmonth)( @dd)/gi, "$1♫$2");
 
}