Skip to content

Commit

Permalink
Merge pull request #8812 from jwilkins/patch-1
Browse files Browse the repository at this point in the history
[FIX] Don't strip trailing slash on autolinker urls
  • Loading branch information
rodrigok authored Dec 4, 2017
2 parents aba6bd2 + 86bc68f commit f18e601
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rocketchat-autolinker/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit f18e601

Please sign in to comment.