diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-06-07 17:43:19 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-06-07 17:43:19 -0400 |
commit | bde432645882c2c328fd3821c8dbcd968677a13a (patch) | |
tree | 7310acb973e77d87c78e88d61c8a208aaabd6bc5 | |
parent | 68c2b070da59bd2cf9c5cd91901a4e3bf6084061 (diff) | |
download | chat-bde432645882c2c328fd3821c8dbcd968677a13a.tar.gz chat-bde432645882c2c328fd3821c8dbcd968677a13a.tar.bz2 chat-bde432645882c2c328fd3821c8dbcd968677a13a.zip |
Properly removed hashtags and at mentions inside of markdown links (#3283)
-rw-r--r-- | webapp/utils/markdown.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx index 73af4ae91..bd1e998b4 100644 --- a/webapp/utils/markdown.jsx +++ b/webapp/utils/markdown.jsx @@ -163,7 +163,7 @@ class MattermostMarkdownRenderer extends marked.Renderer { } // remove any links added to the text by hashtag or mention parsing since they'll break this link - output += '>' + text.replace(/<\/?a[^>]*>/, '') + '</a>'; + output += '>' + text.replace(/<\/?a[^>]*>/g, '') + '</a>'; return output; } |