08-14-2022, 02:46 AM
(This post was last modified: 08-14-2022, 03:20 AM by According_tome. Edited 2 times in total.)
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)