mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 16:42:47 +00:00
Apply suggestions from code review
Some checks failed
Chromatic / Run Chromatic (push) Has been cancelled
Some checks failed
Chromatic / Run Chromatic (push) Has been cancelled
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
1f80082f6d
commit
f35a91d5cc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user