From 18e38bb2bc4c48203f9031e3188a0d7c271449cf Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 14 Jul 2015 08:33:12 +0100 Subject: [PATCH] Fix bug with 2cb6400773096b02b71c1851fb0fac5dfefbbd6f MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The problem was that we failed to escape the dash in the regexp, meaning that it was matching all characters from “.” to “_”. --- core/modules/parsers/wikiparser/rules/syslink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/parsers/wikiparser/rules/syslink.js b/core/modules/parsers/wikiparser/rules/syslink.js index 4c559262b..441fe2aa5 100644 --- a/core/modules/parsers/wikiparser/rules/syslink.js +++ b/core/modules/parsers/wikiparser/rules/syslink.js @@ -18,7 +18,7 @@ exports.types = {inline: true}; exports.init = function(parser) { this.parser = parser; // Regexp to match - this.matchRegExp = /~?\$:\/[a-zA-Z0-9/.-_]+/mg; + this.matchRegExp = /~?\$:\/[a-zA-Z0-9/.\-_]+/mg; }; exports.parse = function() {