PLT-6609: Don't highlight #hashtag.dot when searching for #hashtag (#7109)
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
9eb8d93a0d
Коммит
f4638aecec
@@ -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;
|
||||
}
|
||||
@@ -189,7 +189,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
|
||||
if (this.formattingOptions.siteURL) {
|
||||
const pattern = new RegExp('^' + TextFormatting.escapeRegex(this.formattingOptions.siteURL) + '\\/(?:signup_user_complete|[^\\/]+\\/(?:pl|channels))\\/');
|
||||
|
||||
internalLink = pattern.test(outHref);
|
||||
internalLink = pattern.pattern.test(outHref);
|
||||
}
|
||||
|
||||
if (internalLink) {
|
||||
|
||||
Ссылка в новой задаче
Block a user