You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you post a message like this one: *text:* you will not get a bold text or text with emoji.
I suppose, there is a bug in a PEG grammar: see packages/message-parser/src/grammar.pegjs
Some where between rules Bold and Emoticon. The root of this case is :* - kissing_heart emoticon.
I've thired to figure out how this PEG works, but failed.
Steps to reproduce:
Post a message *text:*
Expected behavior:
There is a bolded text text:
Actual behavior:
There is just a text.
Note: If you post *text :* you will get *text and an emoji.
Server Setup Information:
Version of Rocket.Chat Server: 6.9.0 and erlier
Operating System: any
Deployment Method: any
Number of Running Instances: any
NodeJS Version: 14.21.3
MongoDB Version: 7.3
Client Setup Information
Desktop App or Browser Version: any
Operating System: any
The text was updated successfully, but these errors were encountered:
What do you mean by "just post"?
I meant "type and press submit". When you are editing such a text - there is the same error.
I've tried a banch of strategies and different grammars, but didn't susceed. I have a few tests but every time one of them fails :). Perhaps, it will help to someone.
1 :* // big emoji
2 *bold* // just bold
3 *bold :)* // bold with emoji 1
4 *bold :** // bold with emoji 2
5 *bold:* // no emoji, just bold text
6 *:) bold* //bold with emoji 1
7 *:* bold* // bold with emoji 2 OR bolded ":"
8 * :) bold* //bold with emoji 1
9 * :* bold* //bold with emoji 2 OR bolded " :"
Description:
If you post a message like this one:
*text:*
you will not get a bold text or text with emoji.I suppose, there is a bug in a PEG grammar: see packages/message-parser/src/grammar.pegjs
Some where between rules Bold and Emoticon. The root of this case is
:*
- kissing_heart emoticon.I've thired to figure out how this PEG works, but failed.
Steps to reproduce:
*text:*
Expected behavior:
There is a bolded text
text:
Actual behavior:
There is just a text.
Note: If you post
*text :*
you will get*text
and an emoji.Server Setup Information:
Client Setup Information
The text was updated successfully, but these errors were encountered: