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

Commit

Permalink
fix: name filter
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Sep 19, 2024
1 parent d628748 commit 4f06d5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/utils/serverHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const badWordsFilter = [
];

export function checkForBadWords(name: string) {
name = name.toLowerCase();
for (const regex of badWordsFilter) {
if (name.match(regex)) return true;
}
Expand Down

0 comments on commit 4f06d5d

Please sign in to comment.