Thread Rating:
  • 6 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Client side Profanity Filter
#4
I believe this can be achieved with a simple regex like this /c+*+*+t+|s+*+*+t+/gi checks letters one by one and if one letter is used multiple times it gets replaced in same way. vuglarLanguage.replace(regex, "*****") puts 5 asterisk for any bad stuff. (Asterisks up there are for censoring and they are letters, they are not match zero or more operator)
Reply


Messages In This Thread
Client side Profanity Filter - by FatalFrog - 08-13-2022, 06:22 PM
RE: Client side Profanity Filter - by DioChasek - 08-13-2022, 11:46 PM
RE: Client side Profanity Filter - by Chomusuke - 08-14-2022, 02:04 AM
RE: Client side Profanity Filter - by According_tome - 08-14-2022, 02:46 AM
RE: Client side Profanity Filter - by Kotlol - 08-14-2022, 03:31 AM
RE: Client side Profanity Filter - by BadShot - 08-14-2022, 11:32 AM
RE: Client side Profanity Filter - by Kotlol - 08-15-2022, 03:10 AM
RE: Client side Profanity Filter - by DioChasek - 08-15-2022, 08:23 AM
RE: Client side Profanity Filter - by Mouse - 08-16-2022, 07:43 AM
RE: Client side Profanity Filter - by Love - 08-16-2022, 10:16 AM
RE: Client side Profanity Filter - by FatalFrog - 08-16-2022, 02:12 PM
RE: Client side Profanity Filter - by TDHooligan - 08-19-2022, 04:43 AM
RE: Client side Profanity Filter - by Frank_Stein - 08-20-2022, 10:23 AM
RE: Client side Profanity Filter - by Mouse - 08-20-2022, 04:03 PM
RE: Client side Profanity Filter - by Ikea - 08-20-2022, 04:20 PM
RE: Client side Profanity Filter - by FatalFrog - 08-23-2022, 04:48 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)