Open MaestroJAL opened 4 years ago
Hi!
Yes. It's using JS Regex: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
Can you give an example?
I haven't updated this project in a long time, so I'm surprised anything still works. Which RC version are you using?
Thanks for the link, I'll read up and learn. I've got RC v2.4.11. So, this is what I've got partially working: \b(foo|bar)\b which matches exactly what I need in the Regex tester I'm using (https://regex101.com/) but I need the global and case insensitive flags added to make it hit Foo, foo, but not football. Does that make sense? In the meantime, I'll head over to the page you linked. Thanks!
First, thanks for this! With a little tweaking I hope to tame Rocket.Chat's aggressive word ban list.
For those looking for a working regex: \b(foo|bar)\b (this bans only the words "foo" and "bar" but no variants)