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

Content deleted Content added
bug fix
"adding piping to parentheticals inside parameters" per test script
Line 290:
regex(/(\|)(RT)(?: \(TV network\))(\]\])/g, '$1$2$3');
 
regex(/(=[ ]*\[\[)([^\[\]\(\)\|:]*)( \([^\[\]\(\)\|]*\))(\]\])/gi, '[[$1$2$3|$12$34'); //adding piping to parentheticals inside parameters
 
// regex(/(=(?:Business Day|City Press|Daily News|Daily Voice|Independent Online|New Age|Post|Table Talk|The Citizen|The Mercury|The New Age|The Star|The Sunday Independent|The Sunday Times|The Times|The Witness|The World)) \((South Africa)(?:n newspaper|)\)([ ]*[\|\}])/g, '$1|___location=$2$3');