Make sure the parser rules have unique names

This commit is contained in:
Jeremy Ruston
2012-12-26 19:32:54 +00:00
parent 4cf1c9ed1e
commit c1ec1578ec
6 changed files with 12 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ Wiki text rule for inline-level transclusion. For example:
/*global $tw: false */
"use strict";
exports.name = "transclude";
exports.name = "transcludeinline";
exports.types = {inline: true};
exports.init = function(parser) {
@@ -33,9 +33,9 @@ exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Get the match details
var targetTitle = this.match[1],
var targetTitle = $tw.utils.trim(this.match[1]),
tooltip = this.match[2],
template = this.match[3],
template = $tw.utils.trim(this.match[3]),
style = this.match[4],
classes = this.match[5];
// Return the transclude widget