Properly removed hashtags and at mentions inside of markdown links (#3283)

Этот коммит содержится в:
Harrison Healey
2016-06-07 17:43:19 -04:00
коммит произвёл Joram Wilander
родитель 68c2b070da
Коммит bde4326458

Просмотреть файл

@@ -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;
}