User:Ohconfucius/script/Sources.js: Difference between revisions

Content deleted Content added
tweaks
rem -easier to process if in MOSNUM script
Line 90:
// remove redundant parentheses and templates from dm and md dates (equivalents also exists in Mosnum script)
regex(/(=[ ]*)\(([^()|{}])\)/gi, '$1$2');
regex(/(date[ ]*=[ ]*)\{\{(?:Start|End) ?date\|(\d{4})\|(0?\d|1[012])\|([0-2]?\d|30|31)\}\}/gi, '$1$2-$3-$4'); //stripping start/end template notes inside "|date=" parameter
 
// rem corporate designation