diff options
author | George Goldberg <george@gberg.me> | 2017-08-11 16:52:24 +0100 |
---|---|---|
committer | Saturnino Abril <saturnino.abril@gmail.com> | 2017-08-11 23:52:24 +0800 |
commit | e7053b971b69f5b93c8ff18f4cfdde70a82a0e8e (patch) | |
tree | 65131fdd42c99cc17aa6c6b59d903076a8f3cb4d /webapp/utils/markdown.jsx | |
parent | 44b976886fc9c68426dafb1efd9d75c207ce4acf (diff) | |
download | chat-e7053b971b69f5b93c8ff18f4cfdde70a82a0e8e.tar.gz chat-e7053b971b69f5b93c8ff18f4cfdde70a82a0e8e.tar.bz2 chat-e7053b971b69f5b93c8ff18f4cfdde70a82a0e8e.zip |
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.
Diffstat (limited to 'webapp/utils/markdown.jsx')
-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 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; } |