Files
habitica/website/server/libs/bannedWords.js
T
Keith Holliday d438990d18 Added block when user types a swear word listed in banned words (#8197)
* Added block when user types a swear word listed in banned words

* Moved banned words check to server

* Removed unused code

* Moved banned words to separate file and fixed grammar.

* Updated chat test

* Changed error to BadRequest

* Fixed regex matching

* Updated test banned word

* Moved banned words and cached regex

* Updated banned word message

* Add ban filter only for tavern

* Added tavern id constant

* Added more tests for banned words

* Added warning to banned words

* Added alert

* Added new regex to capture markdown

* Fixed lint, spelling and importing
2017-04-24 07:55:42 -06:00

31 lines
528 B
JavaScript

/* eslint-disable no-multiple-empty-lines */
// CONTENT WARNING:
// This file contains slurs, swear words, religious oaths, and words related to addictive substance and adult topics.
// Do not read this file if you do not want to be exposed to those words.
// The words are stored in an array called `bannedWords` which is then exported with `module.exports = bannedWords;`
// This file does not contain any other code.
let bannedWords = ['TEST_PLACEHOLDER_SWEAR_WORD_HERE'];
module.exports = bannedWords;