Open nguyentuandat opened 5 years ago
I enable Allow Message bad words filtering feature and it does not work as expected Seem 2nd keywords or utf-8 keywords were not filtered.
Allow Message bad words filtering
cho, meo
chó, mèo
Save changes
cho
meo
chó
mèo
Should be show as ***
just cho is show as ***, chó still show chó meo or mèo (not 1st keyword) still show as original (because of space before keywords).
space
On it, will try to fix this.
This problem is with bad-words npm package we are using. I have opened an issue there. https://github.com/web-mech/badwords/issues/53.
bad-words
Description:
I enable
Allow Message bad words filtering
feature and it does not work as expected Seem 2nd keywords or utf-8 keywords were not filtered.Steps to reproduce:
Allow Message bad words filtering
.cho, meo
orchó, mèo
.Save changes
cho
,meo
,chó
,mèo
Expected behavior:
Should be show as ***
Actual behavior:
just
cho
is show as ***,chó
still showchó
meo
ormèo
(not 1st keyword) still show as original (because ofspace
before keywords).Server Setup Information:
Additional context
Relevant logs: