A user, arnaud_sahuguet, reported an issue with search functionality on the forum, specifically with tags containing emojis. The search does not return topics correctly when using tags with emojis.
joffreyjaffeux identified the problem being the regex used in search.rb does not allow emojis. A possible solution is to use a dedicated emoji regex, such as ruby-emoji-regex.
sam expressed concerns about supporting this edge case, while joffreyjaffeux pointed out that there is no validating regex for the Tag class. neil suggested looking into supporting this in version 2.5, as there are no tests for emoji tag names.
lucasbasquerotto further investigated the issue and found that search works partially when using only the tag or with certain keywords, but not with the expected topic.
The topic returned previously, with the tag, is the 1st returned using a keyword with the tag name, but the post is another (but it might just be because of (maybe) a metadata or something like this in the post that is caught by the search, and not the tag itself, but I can’t say for sure).