We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a55a9e6 commit 239e180Copy full SHA for 239e180
badword.js
@@ -708,7 +708,7 @@ set ['thisToxic'](key){
708
// Check conditions for emoji handling
709
if ((position || this.__subtxic) && this.__emoji__.test(this.__text__) && this._st) {
710
// Replace emojis in the text with asterisks (keeping one character visible)
711
- this.__text__ = this.__text__.replace(this.__emoji__, (matchedWord) => '*'.repeat(matchedWord.length - 1));
+ this.__text__ = this.__text__.replace(this.__emoji__, () => '*'.repeat(1));
712
};
713
714
// Split the text into words
0 commit comments