Browse Source

Return the lowercase convert to profanities

Also remove pron
tags/v0.10.6^2
Vildravn 2 years ago
parent
commit
b69b637dae
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/server/misc/profanities.js

+ 4
- 2
src/server/misc/profanities.js View File

@@ -138,7 +138,6 @@ let blacklist = [
'wigger',
'gaes',
'gaez',
'pron',
'nogger'
];

@@ -154,7 +153,7 @@ module.exports = {
buildPath: function (chain, node) {
node = node || this.tree;
const letter = chain[0];
if (!node[letter])
node[letter] = {};

@@ -163,6 +162,9 @@ module.exports = {
},

isClean: function (text, finalLevel) {
text = text
.toLowerCase()

const tree = this.tree;

let tLen = text.length;


Loading…
Cancel
Save