RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
39.26k stars 10.06k forks source link

Issue with Cyrillic Words Highlighting #32584

Open CyberStranger opened 2 weeks ago

CyberStranger commented 2 weeks ago

Description:

There's an issue with the highlighting functionality for Cyrillic words. When adding Russian words to Preferences > Highlights > Highlights word settings, these words do not get highlighted in the chat if they are not at the beginning of a sentence. This behavior is different from the highlighting of English words, which get highlighted regardless of their position in the sentence.

Steps to reproduce:

  1. Open the Rocket.Chat desktop client.
  2. Navigate to Preferences > Highlights.
  3. Add a word in Russian (e.g., "тест") to the Highlights word list.
  4. Send a message in any chat where the Russian word is not at the beginning of the sentence (e.g., "Это тест сообщения").
  5. Observe that the Russian word is not highlighted in the message.

Expected behavior:

Russian words added to Highlights should be highlighted regardless of their position in the sentence, similar to the behavior for English words.

Actual behavior:

Russian words are only highlighted when they are at the beginning of the sentence.

Server Setup Information:

Client Setup Information

Additional context

This issue affects users who communicate frequently in Russian or any other language using Cyrillic script, causing an inconsistent user experience. Any help in resolving this issue would be greatly appreciated. highlights start_pos not_start_pos

reetp commented 2 weeks ago

Hi and thanks for reporting this.

Can you please test this on the latest versions of server & client?

open.rocket.chat is very latest, or run 6.9 on your own infra.

Use the latest 4.x Electron client, and also test with a browser.

CyberStranger commented 2 weeks ago

Hi. I tested on RocketChat Server 6.9.1 and RocketChat.Electron 4.0.0. This bug is also present. Additionally I tested with Google Chrome and Mozilla Firefox. Same behavior

reetp commented 2 weeks ago

I have asked if someone can look at this.

Please be patient.

reetp commented 2 weeks ago

This has been reported internally as well and is in hand.

It isn't top priority so the fix may take a while.