Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
chore: update bad words filter
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Oct 10, 2024
1 parent 1cd12d2 commit 5268d48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/utils/serverHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ export function readPostedJSON<T>(

// credits: https://github.com/Blank-Cheque/Slurs
const badWordsFilter = [
/(s[a4]nd)?n[ila4o10íĩî|][gq]{1,2}(l[e3]t|[e3]r|[a4]|n[o0]g)?s?/,
/f[a@4](g{1,2}|qq)([e3il1o0]t{1,2}(ry|r[i1líĩî|]e)?)?/,
/(s[a4]nd)?n[ila4o10íĩî|!][gq]{1,2}(l[e3]t|[e3]r|[a4]|n[o0]g)?s?/,
/f[a@4](g{1,2}|qq)([e3i1líĩî|!o0]t{1,2}(ry|r[i1líĩî|!]e)?)?/,
/k[il1y]k[e3](ry|rie)?s?/,
/tr[a4]n{1,2}([i1líĩî|][e3]|y|[e3]r)s?/,
/tr[a4]n{1,2}([i1líĩî|!][e3]|y|[e3]r)s?/,
/c[o0]{2}ns?/,
/ch[i1líĩî|]nks?/,
/ch[i1líĩî|!]nks?/,
];

export function checkForBadWords(name: string) {
Expand Down

0 comments on commit 5268d48

Please sign in to comment.