Content deleted Content added
delete <nowiki/> tags (publish.php) |
handle edge case in refShortLinkToLongLink() (publish.php) |
||
Line 262:
// also fixes <ref> link </ref> issues with extra spaces in the ref
refShortLinkToLongLink(wikicode) {
// <ref>[https://test.com''Test'']</ref>
return wikicode.replace(/(<ref[^>]*>) {0,}\[ {0,}([^\]]*) {0,}\] {0,}(<\/ref>)/gm, '$1$2$3');▼
wikicode = wikicode.replace(/(<ref[^>]*>) {0,}\[ {0,}([^'\]]*)(''[^\]]*)\] {0,}(<\/ref>)/gm, '$1$2 $3$4');
// <ref>[https://test.com Test]</ref>
▲
return wikicode;
}
|