KidzSearch Encyclopedia:AutoEd/links.js
//<source lang=javascript>
function autoEdLinks(str) { //MAIN FUNCTION describes list of fixes
str = str.replace(/\]\[/g, "] [");
//repair bad external links str = str.replace(/\[?\[http:\/\/([^\]\n]*?)\]\]?/gi, "[1]"); //str = str.replace(/\[http:\/\/([^\]]*?)\|([^\]]*?)\]/gi, "$2");
return str;
}
//</source>