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

Content deleted Content added
multiple or zero spaces
No edit summary
Line 51:
//
// regex(/(\|\s*(?:author|publisher|work) *= *)(?:https?:\/{2}|)(?:w{3}\.|)(\w+(?:\.(?:com?|net|org|gov|\w{2})|)(?:\.\w{2}|))(?:\/[^|}]*|)(?=\s*[\]|}])/gi, '$1$2'); //returns ___domain name
regex(/(\|\s*title\s*\=\s*)https?:\/{2}(?:w{3}\.|)(\w+\.com)(?=\s?[=|{}])/gi, '$1<!-- ACTUAL ARTICLE TITLE BELONGS HERE! original text: $2 -->');
regex(/(\|\s*title\s*\=\s*)https?:\/{2}([^|\s]+)(?=\s?[=|{}])/gi, '$1<!-- ACTUAL ARTICLE TITLE BELONGS HERE! original text: $2 -->');
regex(/(\|\s*(?:author(?:link\d?|)|chapter|journal|magazine|newspaper|publisher|title|work|via)\s*\=\s*)https?:\/{2}(?:w{3}\.|)(?=\w)/gi, '$1'); //removes http:// and optionally www.