-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Emote detection fails around linebreaks #13059
Copy link
Copy link
Closed
Labels
area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactionRelated to UI/UX, frontend code, accessibility, and user interactionfeat: messagetype: bug
Description
Description:
Emote detection fails around linebreaks.
Steps to reproduce:
-
Open a chat, for example a direct message to yourself.
-
Send the following single, multi-line message, which contains no trailing or leading whitespace:
:D foo :D bar :D baz :D quux :D :D this :D is :D a simple :D test :D without :D leading :D or :D trailing :D emote :D hello :D world :D
Expected behavior:
The message is sent and all occurrences of :D get replaced by 😃.
Actual behavior:
The message is sent and MOST occurrences of :D get replaced by 😃, EXCEPT those around the linebreaks.
Server Setup Information:
- Version of Rocket.Chat Server: 0.70.0
- Operating System: dunno, shouldn't be relevant
- Deployment Method: dunno
- Number of Running Instances: 1, I guess, shouldn't be relevant
- DB Replicaset Oplog: dunno, shouldn't be relevant
- NodeJS Version: dunno
- MongoDB Version: dunno
Additional context
I found this issue while using a private instance. I'm just the end user, and have been told to direct any bug reports upstream.
Relevant logs:
JS console log: Loading: false (nothing else; seems irrelevant)
Server log: unavailable; this is a private instance. Shouldn't be relevant.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactionRelated to UI/UX, frontend code, accessibility, and user interactionfeat: messagetype: bug