From f35a91d5ccd77de2c1a9af5dfb5bd11d8517e6a7 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 16 Sep 2025 16:26:34 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Claire --- app/javascript/mastodon/actions/compose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/actions/compose.js b/app/javascript/mastodon/actions/compose.js index 74841334a07..6324b8ce417 100644 --- a/app/javascript/mastodon/actions/compose.js +++ b/app/javascript/mastodon/actions/compose.js @@ -726,7 +726,7 @@ function insertIntoTagHistory(recognizedTags, text) { // complicated because of new normalization rules, it's no longer just // a case sensitivity issue const names = recognizedTags.map(tag => { - const matches = text.match(new RegExp(`[#|#]${tag.name}`, 'i')); + const matches = text.match(new RegExp(`[##]${tag.name}`, 'i')); if (matches && matches.length > 0) { return matches[0].slice(1);