different approach to filtering and old extensive list

This commit is contained in:
durn
2026-04-25 13:27:51 -06:00
parent 1e86e42c67
commit ca3e64c096
5 changed files with 2696 additions and 408 deletions
@@ -62,7 +62,7 @@
function isProfane(str) {
const lower = str.toLowerCase().trim();
return bannedWords.some(word => word === lower);
return bannedWords.some(word => new RegExp(`\\b${word}\\b`).test(lower));
}
function showError(input, message) {