I’ve set up a rule \bass\b
and I’m getting inconsistent results:
Shouldn’t just the word “ass” be censored here?
I’ve set up a rule \bass\b
and I’m getting inconsistent results:
Shouldn’t just the word “ass” be censored here?
Are we 100% sure the watched words regular expression
site setting was flipped to true?
If that is at its default (false) then watched words wouldn’t be regular expressions at all, but also it wouldn’t be matching as it is in your screenshot … so I’m not sure. @neil?
I also can’t repro this on my instance of discourse @awesomerobot :
watched words regular expression
\bass\b
in censored sectionJust repro’d it on Try. For some reason the word boundary isn’t working when ass and assassin are on the same line. The boundary seems to work fine if I put assassin on a new line.
https://try.discourse.org/t/this-is-a-test-post-with-censored-words/969
Ok there is your repro @neil and @eviltrout I would classify this as a bug for the customer you are working on, too.
This case should be fixed now:
https://github.com/discourse/discourse/commit/dc9723904045a5cf1a3d5f55e34fb582abe73214