Skip to content

Commit

Permalink
Don't strip trailing slash on autolinker urls
Browse files Browse the repository at this point in the history
Library default is to strip slashes, this is not helpful most of the time
  • Loading branch information
jwilkins authored Nov 7, 2017
1 parent 302641a commit 86bc68f
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 86bc68f

Please sign in to comment.