From 698f2c39cb4d5d89ecf62596ba551ccf9d109212 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 7 Jun 2012 13:09:22 +0100 Subject: [PATCH] Updated wikitext `class` rule to use parseBlockTerminated() method --- .../parsers/newwikitextparser/rules/class.js | 26 ++----------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/core/modules/parsers/newwikitextparser/rules/class.js b/core/modules/parsers/newwikitextparser/rules/class.js index d0574a1e8..7b920a4f3 100644 --- a/core/modules/parsers/newwikitextparser/rules/class.js +++ b/core/modules/parsers/newwikitextparser/rules/class.js @@ -39,31 +39,9 @@ exports.parse = function(match,isBlock) { match = reStart.exec(this.source); if(match) { this.pos = match.index + match[0].length; - // Skip any whitespace - this.skipWhitespace(); - // Check if we've got the end marker - reEnd.lastIndex = this.pos; - endMatch = reEnd.exec(this.source); - // Parse the text into blocks - while(this.pos < this.sourceLength && !(endMatch && endMatch.index === this.pos)) { - var blocks = this.parseBlock(); - for(var t=0; t