If a censored word had punctuation following it then it is removed when asterisked/censored
Description:
When the blacklist of words to censor is enabled, any word that is censored which had punctuation following it ends up losing the punctuation following the asterisks. So if I send a message asking someone "Please could you bring over the knobs? This guitar is almost done." then the 'knobs' is censored (silly, I know), but the ***** loses the ? following it, which makes the flow of conversation hard to follow.
I would like to work on this issue:smile:
Can anybody tell me how can we censor/asterisk a word?
@HammyHavoc ^
At this present time, I do not use Rocket.Chat, nor contribute to the development of it. We had to find another solution for our legally blind colleague due to a lack of dark mode and no progress made on that front when we were forced to switch to another solution.
@ggazzo, can you please tell me how we can censor/asterisk a word, I am facing difficulty in it.
@HammyHavoc @ggazzo @gabriellsh Is this issue still valid?
I am not able to produce it.
knobs is by default a badword in rocket.chat
I have added custom badword ashwani too and verified.

Can anybody tell me how can we censor/asterisk a word?
You can do so by going administraion->messages and then enabling bad words filtering
@HammyHavoc @ggazzo @gabriellsh Is this issue still valid?
I am not able to produce it. knobs is by default a badword in rocket.chat I have added custom badword
ashwanitoo and verified.
same here. I am also unable to reproduce this issue. Instead, the problem is when we put a word between two censored words, we unintendedly made that word bold, This issue is opened #16670
@subham103 i have made a pr for the "bold" issue Also i think the bad words filtering should be conditional if settings is toggled
@ashwaniYDV The bad word filtering is already conditional. There is a toggle option (Allow Message bad words filtering) already exist in administraion->messages which upon off will not change the bad words to ****
@subham103 The issue here is that if bad words filtering is on and I enter a message knob is a bad word, then it is saved in the database as **** is a bad word. Now if I turn off the bad word filter from settings, then I expect the message to be knob is a bad word. But it is rendered as **** is a bad word. So expected behaviour should be to not to hardcode the bad words as **** in the database. It should be 100% conditional according to the current settings.
@gabriellsh Please lead us regarding this issue :)
I'll be closing this one as this specific issue doesn't happen. Please, take the discussion to #16670.