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.
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
44b976886f
Коммит
e7053b971b
@@ -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;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user