Skip to content

Commit 0bd86ca

Browse files
updating profanity list
1 parent 23ae069 commit 0bd86ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

edurate/backend/routes/courses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ router.post('/:id/reviews', async (req, res) => {
221221
// Simple profanity filter with common inappropriate words (whole word matching)
222222
const profanityList = [
223223
'fuck', 'shit', 'damn', 'hell', 'ass', 'bitch', 'bastard',
224-
'crap', 'piss', 'dick', 'cock', 'pussy', 'fag', 'slut', 'whore'
224+
'crap', 'piss', 'dick', 'cock', 'pussy', 'fag', 'slut', 'whore', 'sucks', 'crap'
225225
];
226226

227227
const checkProfanity = (text) => {

0 commit comments

Comments
 (0)