Fixed wikitext rule for CSS classes to not erroneously match {{{

This commit is contained in:
Jeremy Ruston
2012-05-27 09:24:37 +01:00
parent 506519b49a
commit aa4d435a67
2 changed files with 6 additions and 2 deletions
@@ -16,11 +16,11 @@ exports.name = "class";
exports.blockParser = true;
exports.regExpString = "\\{\\{(?:[^\\{\\r\\n]*)\\{$";
exports.regExpString = "\\{\\{(?:[^\\{\\r\\n]+)\\{$";
exports.parse = function(match) {
var tree = [],
reStart = /\{\{([^\{\r\n]*){(?:\r?\n)?/mg,
reStart = /\{\{([^\{\r\n]+){(?:\r?\n)?/mg,
reEnd = /(\}\}\}$(?:\r?\n)?)/mg,
endMatch;
reStart.lastIndex = this.pos;