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

Content deleted Content added
another instance of Gannett
well spotted, Batman!
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