Content deleted Content added
Manishearth (talk | contribs) No edit summary |
Manishearth (talk | contribs) No edit summary |
||
Line 17:
par[j].innerHTML=par[j].innerHTML.replace(/\[\[([^\]\|]*)[\|]?([^\]]*)\]\]/g,"<a href='"+wgServer+"/wiki/$1'>$2</a>");
par[j].innerHTML=par[j].innerHTML.replace(/\[(http[s]?:\/\/[^\]\s]*)\]/g,"<a href='$1'>$1</a>");
par[j].innerHTML=par[j].innerHTML.replace(/\[(http[s]?:\/\[^\]\s]*)
//par[j].innerHTML=par[j].innerHTML.replace(/[^\"\>][\s]?+(http[s]?:\/\/[^\s]*)/g,"<a href='$1'>$1</a>");
}
|