Content deleted Content added
No edit summary |
No edit summary |
||
Line 4,201:
// <table>
obj.html = obj.html.replace(/[\s\u0000]*<table>[\s\u0000]*(\|-(?=[\n\u0000]))?/g, '\u0000\u0000{|\u0000');
obj.html = obj.html.replace(/[\s\u0000]*<(table) +([^>]*)>[\s\u0000]*(\|-(?=[\n\u0000]))?/g,
Line 4,223 ⟶ 4,222:
// internal wiki links
// get the title="" parameter
Line 4,244 ⟶ 4,237:
// get wiki article name from url parameter list
regExpStr = ' href=\\"(' + wikEdServer + '|\\.|(\\.\\.\/)*\\.\\.)(' + wikEdScriptPath + '|\\/)index\\.php\\?[^\\"]*?\\btitle=([^\\"]*?)(&|\\")';
regExp = new RegExp(regExpStr);
Line 4,254 ⟶ 4,245:
linkArticle = linkArticle.replace(/_/g, ' ');
linkArticle = decodeURIComponent(linkArticle);
// ISBN links
Line 4,261 ⟶ 4,251:
regExpMatch = regExp.exec(linkPar);
if (regExpMatch != null) {
return('ISBN ' + regExpMatch[4]);▼
if (regExpMatch != null) {▼
isbn = regExpMatch[1];
}▼
}
}
Line 4,274 ⟶ 4,268:
if (regExpMatch != null) {
linkArticle = regExpMatch[4];
▲WED('regExpMatch[1]', regExpMatch[1]);
if (linkArticle != '') {
linkArticle = linkArticle.replace(/_/g, ' ');
Line 4,306 ⟶ 4,292:
return('[[' + linkArticle + imgWidth + ']]');
}
▲ }
▲ regExpMatch = regExp.exec(linkAddr);
▲ if (regExpMatch != null) {
}
|