FEATURE: Watched Word Improvements (PR #7963)

  • Client-side censoring fixed for non-chrome browsers. (Regular expression adapted to avoid lookback)

  • Regex generation is now done on the server, to reduce repeated logic, and make it easier to extend in plugins

  • Censor tests are moved to ruby, to ensure everything works end-to-end

  • If “watched words regular expressions” is enabled, warn the admin when the generated regex is invalid

  • Added a “test” button to the admin UI, so that it is easy to test for matches:

Screenshot 2019-08-02 at 11 00 20



You’ve signed the CLA, davidtaylorhq. Thank you! This pull request is ready for review.

Excellent PR. I don’t have any suggestions which is quite rare for something this long!

1 Like