Skip to content

Commit

Permalink
fix: lowercase ignored phrases as well
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed May 14, 2024
1 parent 853bcb4 commit eb76414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var Chat = function(id, player, type, start, end, provider) {
this.letterVis = document.querySelector("#letterVis").checked
this.asciiLimit = document.querySelector("#asciiLimit").valueAsNumber
this.ignoredPhrases = document.querySelector("#ignoredPhrases").value !== "" ? document.querySelector("#ignoredPhrases").value.split(",") : []
this.ignoredPhrases.forEach((el, index) => this.ignoredPhrases[index] = el.trim())
this.ignoredPhrases.forEach((el, index) => this.ignoredPhrases[index] = el.trim().toLowerCase())
this.badWords = document.querySelector("#badWords").checked
this.badWordsRegex = /(fuck|shit|cunt|whore|bitch|faggot|fag|nigger|nigga|gusano|cracker|rape)/gi

Expand Down

0 comments on commit eb76414

Please sign in to comment.