summaryrefslogtreecommitdiffstats
path: root/webapp/utils/markdown.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-06-07 17:43:19 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-06-07 17:43:19 -0400
commitbde432645882c2c328fd3821c8dbcd968677a13a (patch)
tree7310acb973e77d87c78e88d61c8a208aaabd6bc5 /webapp/utils/markdown.jsx
parent68c2b070da59bd2cf9c5cd91901a4e3bf6084061 (diff)
downloadchat-bde432645882c2c328fd3821c8dbcd968677a13a.tar.gz
chat-bde432645882c2c328fd3821c8dbcd968677a13a.tar.bz2
chat-bde432645882c2c328fd3821c8dbcd968677a13a.zip
Properly removed hashtags and at mentions inside of markdown links (#3283)
Diffstat (limited to 'webapp/utils/markdown.jsx')
-rw-r--r--webapp/utils/markdown.jsx2
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;
}