john-science / DecafMUD

Web-based MUD Client for the Discworld MUD
MIT License
2 stars 2 forks source link

Word-Highlighting Regex #11

Closed john-science closed 5 years ago

john-science commented 5 years ago

I tried to put (one) in my highlighting box and it replaced anyone instance of "one" in game with "(one)". This is obviously not what we want. So we either need to escape these things in our regex or remove any regexable characters from our strings as part of the initial cleaning.