Centralize handling of escaped regex
I just noticed that when searching for chat logs or reports with escaped regex (e.g. \/forward slash
), the forward slashes would be removed entirely. This results in matching both no forward slash
and a /forward slash
, as it strips the /
off entirely (so it searches for forward slash
instead of /forward slash
).
I am currently fixing both (and writing tests for them), but I need to create a helper method for all models to easily determine if a string contains escaped forward slashes, and if so, escape them.