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

Content deleted Content added
bug fix for multiple citations within a single ref tag (Ohc_sources_cleanup)
fix
Line 280:
regex(/\|\s?___location\s*\=\s*New York(?: City|)\s*(\|[^}<>]*|)\|\s?___location\s*\=\s*(New York(?: City|)|USA)(?=[\s\.]*[\|\}])/g, '|___location=New York $1');
 
regex(/(?:\|[ ]*?___location=[^\[\]\|]*)(\|[ ]*?___location=[^\[\]\|\}]*)(?=[\|\}])+/gi, '$1');
regex(/(\|[ ]*?publisher=[^\[\]\|]*)(?:\|[ ]*?publisher=[^\[\]\|\}]*)(?=[\|\}])+/gi, '$1');
regex(/(\|[ ]*?work=[^\[\]\|]*)(?:\|[ ]*?work=[^\[\]\|\}]*)(?=[\|\}])+/gi, '$1');
 
//unwinding of unnecessary pipes