From 2689f6b1e59420332cce8461fe3288fd5d1bc020 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 20 Dec 2012 09:26:59 +0000 Subject: [PATCH] Loosened dash formatting rule It no longer has to be followed by whitespace, instead it must be followed by anything other than a dash. --- core/modules/parsers/wikiparser/rules/run/dash.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/modules/parsers/wikiparser/rules/run/dash.js b/core/modules/parsers/wikiparser/rules/run/dash.js index 60ddb3e9e..a51af47de 100644 --- a/core/modules/parsers/wikiparser/rules/run/dash.js +++ b/core/modules/parsers/wikiparser/rules/run/dash.js @@ -11,8 +11,6 @@ This is an en-dash: -- This is an em-dash: --- }}} -Dashes must be followed by whitespace in order to be distinguished from strikethrough notation (`--strikethrough--`). - \*/ (function(){ @@ -25,7 +23,7 @@ exports.name = "dash"; exports.init = function(parser) { this.parser = parser; // Regexp to match - this.matchRegExp = /-{2,3}(?=\s)/mg; + this.matchRegExp = /-{2,3}[^-]/mg; }; exports.parse = function() {