User:Cacycle/wikEd dev.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 4,222:
WED();
WED('linkPar', linkPar);
WED('wikEdServer', wikEdServer);
WED('wikEdArticlePath', wikEdArticlePath);
WED('wikEdScriptPath', wikEdScriptPath);
 
// get the title="" parameter
regExpStr = ' href=\\"(' + wikEdServer + '|\\.\\.)(' + wikEdArticlePath + '|\\/\\.\\.|' + wikEdScriptPath + ')([^\\">]*)\\"';
regExp = new RegExp(regExpStr);
regExpMatch = regExp.exec(linkPar);
Line 4,237 ⟶ 4,240:
 
// get wiki article name from url parameter list
regExpStr = ' href=\\"(' + wikEdServer + '|\\.\\.\\)(' + wikEdScriptPath + 'index\\.php\\?[^\\"]*?\\btitle=([^\\"]*?)(&|\\")';
regExp = new RegExp(regExpStr);
regExpMatch = regExp.exec(linkPar);