Full Version: Rufioh's quirk
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm not sure what it is, but Rufioh's quirk consists of his censored curses, but they won't work in the chats unless the random symbols and numbers around them are removed. Just wondering if that can be fixed c:
They work as intended.

The "random numbers and symbols" are regular expressions preventing matches from occurring where they shouldn't.

For example:
/(^|\s)ass(\W|$)/ --> $1*ss$2
matches "ass" only if occurring at the beginning of a line (^) or (|) after a spacing character (\s), and only when followed by a non word character (\W) or the end of the line ($). The replacement puts back in the spacing character/beginning of line ($1) and the ensuing nonword character or end of line ($2).

leads to:

i don't want to be an ass about it,

while at the same time preventing this from being censored

i don't want to assign blame to anyone about it,
That is some nifty coding skills
That makes much more sense now, thanks for explaining it c:
I haven't exactly gotten much experience with the coding so I was unsure of how to work with it
Here is a basic introduction to regex if you're curious, and you can play around with it in a live sandbox here. It's not that difficult once you get the hang of it and crazy versatile/useful.

Regex on msparp follows normal js syntax; you can use regex instead of simple replacements by enclosing the pattern in /forward slashes/ (the same as here on the forums).
Coding.... Too complicated Wweh
Reference URL's