From 040a614c51f4f625f0a3a4ed0abe9cb330bbd5c2 Mon Sep 17 00:00:00 2001 From: Karl Meisner Date: Wed, 23 Apr 2025 12:33:03 -0400 Subject: [PATCH] Update profanity filter Update profanity filter to more accurately represent what is actually considered profanity at DTU --- Sources/App/Chat/Validate message.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/App/Chat/Validate message.swift b/Sources/App/Chat/Validate message.swift index fc74c24..2fb81fd 100644 --- a/Sources/App/Chat/Validate message.swift +++ b/Sources/App/Chat/Validate message.swift @@ -1,7 +1,8 @@ fileprivate let profanity = [ - "fuck", - "cunt", - "shit", + "ballerup", + "windows_11", + "Lars D. Christoffersen", + "Innovation in Engineering" ] func checkMessage(msg: String) throws -> String{