User:Lenore/autolink.js: Difference between revisions

Content deleted Content added
mNo edit summary
Revert to previous version, +fix
Line 61:
// External links in history pages, wikicode without label
 
autolinkRegexURLinWcodeWithLabel = /()\[{1}((?:https?|ftps?):\/\/[^\s]+)()\s+([^\]\n]+)\]{1}()/g;
// External links in history pages, wikicode with label (the URL will not be visible)
 
Line 71:
// External links in other pages, wikicode without label
 
autolinkRegexURLinWcodeWithLabel = /(\[{1})(((?:https?|ftps?):\/\/[^\s]+))(\s+[^\]\n]+)(\]{1})/g;
// External links in other pages, wikicode with label
 
Line 82:
// Wikilinks
 
autolinkRegexTemplate = /\{{2}((?:[Ss][Uu][Bb][Ss][Tt]\:|[Mm][Ss][Gg]\:|[Mm][Ss][Gg][Nn][Ww]\:)?)([^\{][^\:\|<>\n]*?)(\s*(?:(?:\:|\|)[^<\n]*?|))\}{2}/g;
// Templates