Skip to content

Commit 239e180

Browse files
authored
badword.js
1 parent a55a9e6 commit 239e180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

badword.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ set ['thisToxic'](key){
708708
// Check conditions for emoji handling
709709
if ((position || this.__subtxic) && this.__emoji__.test(this.__text__) && this._st) {
710710
// Replace emojis in the text with asterisks (keeping one character visible)
711-
this.__text__ = this.__text__.replace(this.__emoji__, (matchedWord) => '*'.repeat(matchedWord.length - 1));
711+
this.__text__ = this.__text__.replace(this.__emoji__, () => '*'.repeat(1));
712712
};
713713

714714
// Split the text into words

0 commit comments

Comments
 (0)