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() {