From e7053b971b69f5b93c8ff18f4cfdde70a82a0e8e Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Fri, 11 Aug 2017 16:52:24 +0100 Subject: PLT-6609: Fix hashtag highlighting of search results (#7175) * PLT-6609: Don't highlight #hashtag.dot when searching for #hashtag * Fix bug that broke pre-release. --- webapp/utils/markdown.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/utils/markdown.jsx') diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx index 8733e6200..5918b1581 100644 --- a/webapp/utils/markdown.jsx +++ b/webapp/utils/markdown.jsx @@ -175,7 +175,7 @@ class MattermostMarkdownRenderer extends marked.Renderer { if (this.formattingOptions.searchPatterns) { for (const pattern of this.formattingOptions.searchPatterns) { - if (pattern.test(href)) { + if (pattern.pattern.test(href)) { output += ' search-highlight'; break; } -- cgit v1.2.3-1-g7c22