Post

My girlfriend plays a game that blocks you from naming characters inappropriately, but for some reason it blocks a ton of normal names like "Valerie" or "Fiona" or "Hailey" or "Squidward" or "Sean" so she asked me to look at the game's code to find out why… 🧡

The game has a list of illegal terms separated by a | symbol, something like "lexi|qixils" to prevent a name from having "lexi" or "qixils" anywhere in it. It looked like a fairly standard list of slurs at first until I got to the end of the list…

0 reposts9 likes

For some inexplicable reason, the very last blocked term is actually a RegEx filter. I won't bore with the specifics, but an example filter would be "L(A|E|U)X" which means "L, followed by an A or E or U, then X". You might see where this is going…

The issue is that the RegEx tries to use the | symbol, except that's exactly the same symbol that the game already uses to break apart the whole list of filters! This means the 1 RegEx filter actually becomes 3: "L(A", "E", and "U)X"… This 2nd filter then blocks any name with an "E" in it! πŸ’€

While this "E" filter was a made-up example, some REAL examples of blocked text from the game include: ay, ey, io, aer, ea, eoa, ie, ier, let, & ward. (I won't share the full list; I'm not sure what it's for exactly but I assume it's Chinese slurs.)