MediaWiki:Common.js: Difference between revisions

forgot a )
(add test for letters after &)
(forgot a ))
Line 40: Line 40:
       continue;
       continue;
     }
     }
     else if ((text[i - 1] == '&') && /[0-9a-fl-or]/.test(text[i]) {
     else if ((text[i - 1] == '&') && /[0-9a-fl-or]/.test(text[i])) {
       if (text[i] == 'r') {
       if (text[i] == 'r') {
         res += "</span>".repeat(spans);
         res += "</span>".repeat(spans);
184

edits