From bde432645882c2c328fd3821c8dbcd968677a13a Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 7 Jun 2016 17:43:19 -0400 Subject: [PATCH] Properly removed hashtags and at mentions inside of markdown links (#3283) --- webapp/utils/markdown.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx index 73af4ae91a..bd1e998b4a 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[^>]*>/, '') + ''; + output += '>' + text.replace(/<\/?a[^>]*>/g, '') + ''; return output; }