Apply suggestions from code review
Some checks failed
Chromatic / Run Chromatic (push) Has been cancelled

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Eugen Rochko 2025-09-16 16:26:34 +02:00 committed by GitHub
parent 1f80082f6d
commit f35a91d5cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -726,7 +726,7 @@ function insertIntoTagHistory(recognizedTags, text) {
// complicated because of new normalization rules, it's no longer just // complicated because of new normalization rules, it's no longer just
// a case sensitivity issue // a case sensitivity issue
const names = recognizedTags.map(tag => { 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) { if (matches && matches.length > 0) {
return matches[0].slice(1); return matches[0].slice(1);