From 93b9d16d6c3f849f7f27853176860beb6cddca16 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 13 Apr 2014 21:16:54 +0100 Subject: [PATCH] Don't include pipe characters in URLs --- core/modules/parsers/wikiparser/rules/extlink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/parsers/wikiparser/rules/extlink.js b/core/modules/parsers/wikiparser/rules/extlink.js index 2a7671c8d..36bb372a8 100644 --- a/core/modules/parsers/wikiparser/rules/extlink.js +++ b/core/modules/parsers/wikiparser/rules/extlink.js @@ -26,7 +26,7 @@ exports.types = {inline: true}; exports.init = function(parser) { this.parser = parser; // Regexp to match - this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s'"<>]+(?:\/|\b)/mg; + this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s\|'"<>]+(?:\/|\b)/mg; }; exports.parse = function() {