From 86bc68f1095a59753cac6a7992534672fc8b01c8 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkins Date: Tue, 7 Nov 2017 13:19:53 -0800 Subject: [PATCH] Don't strip trailing slash on autolinker urls Library default is to strip slashes, this is not helpful most of the time --- packages/rocketchat-autolinker/client/client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/rocketchat-autolinker/client/client.js b/packages/rocketchat-autolinker/client/client.js index ef37d0f4b5fb..60c18123d007 100644 --- a/packages/rocketchat-autolinker/client/client.js +++ b/packages/rocketchat-autolinker/client/client.js @@ -25,6 +25,7 @@ function AutoLinker(message) { email: RocketChat.settings.get('AutoLinker_Email'), phone: RocketChat.settings.get('AutoLinker_Phone'), twitter: false, + stripTrailingSlash: false, replaceFn(match) { if (match.getType() === 'url') { if (regUrls.test(match.matchedText)) {