From 4cf1c9ed1e1a30a0e31fadfbf64e9ebf7cd9a0d5 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 26 Dec 2012 19:32:06 +0000 Subject: [PATCH] Fix problem with the regexp for the "dash" parser --- core/modules/parsers/wikiparser/rules/dash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/parsers/wikiparser/rules/dash.js b/core/modules/parsers/wikiparser/rules/dash.js index 8bfc8bcb7..45481bf07 100644 --- a/core/modules/parsers/wikiparser/rules/dash.js +++ b/core/modules/parsers/wikiparser/rules/dash.js @@ -24,7 +24,7 @@ exports.types = {inline: true}; exports.init = function(parser) { this.parser = parser; // Regexp to match - this.matchRegExp = /-{2,3}[^-]/mg; + this.matchRegExp = /-{2,3}(?!-)/mg; }; exports.parse = function() {