Skip to content

Commit 79d242d

Browse files
authored
badword.js
1 parent 1f13e7d commit 79d242d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

badword.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ constructor(text = "", customFilter="", customSubFilter=""){
9191
this._filt = /b[a4][s5]hfu[l1][l1]|k[i1][l1][l1]|fuck[*]?|dr[uo]g[*]?|d[i1]ck[*]?|[a4][s5][s5]|[l1][i1]p|pu[s5][s5]y[*]?|fk/gi;
9292

9393
this._subfilter = /[a4][s5][s5]|[l1][i1]p|pu[s5][s5]y[*]?|[s5]uck[*]?|m[o0]th[e3]r[*]?|m[o0]m[*]?|d[o0]g[*]?|l[o0]w[*]?|s[e3]x[*]?/gi;
94-
if (customFilter.length>1){
94+
if (customFilter.length>3){
9595
this._filt = new RegExp(this._filt.source+"|"+escapeRegExp(customFilter), "gi");
9696
};
97-
if (customSubFilter.length>1){
97+
if (customSubFilter.length>3){
9898
this._subfilter = new RegExp(this._subfilter.source+"|"+escapeRegExp(customSubFilter), "gi");
9999
};
100100
this.__subtxic = [];
@@ -436,10 +436,10 @@ class filters_badword extends FilterBadWord{
436436
isfiles = true;
437437
};
438438

439-
if (customFilter.length>1){
439+
if (customFilter.length>3){
440440
this._filt = new RegExp(this._filt.source+"|"+escapeRegExp(customFilter), "gi");
441441
};
442-
if (customSubFilter.length>1 && !isfiles){
442+
if (customSubFilter.length>3 && !isfiles){
443443
this._subfilter = new RegExp(this._subfilter.source+"|"+escapeRegExp(customSubFilter), "gi");
444444
};
445445
}

0 commit comments

Comments
 (0)