# \* wildcards in Watched Words (Censor) don't work

**URL:** <https://meta.discourse.org/t/wildcards-in-watched-words-censor-dont-work/77007>\
**Category:** Feature\
**Created:** [31 december 2017 om 06:37 UTC](https://meta.discourse.org/t/wildcards-in-watched-words-censor-dont-work/77007 "2017-12-31T06:37:30Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)\
**Post date:** [31 december 2017 om 06:37 UTC](https://meta.discourse.org/t/wildcards-in-watched-words-censor-dont-work/77007/1 "2017-12-31T06:37:31Z")

</div>

Repo:

1. Make sure Site Settings \> watched words regular expressions is OFF
2. Go to Logs \> Watched Words
3. Type in `somebadword*` in `Censor`
4. `./launcher restart app` (this step appears to be necessary when the watched words list is changed, although I can’t understand why)
5. Try to type in `somebadword` in the compose window. No effect.
6. Check `admin/watch_words.json` and confirm that the word is accurately entered as `somebadword*`

> <https://github.com/discourse/discourse/blob/37854299488e47a7eac818e577c65e9431501b46/app/services/word_watcher.rb#L28-L35>

This code should be replacing `*` with `\S*` (but I’m not sure if it will get lower-cased in the end). Somehow it is not matching.

---

_[View the full topic](https://meta.discourse.org/t/wildcards-in-watched-words-censor-dont-work/77007)._
