So really the regex should be validated before allowing it to be added? And there should be a rescue so an invalid regex can’t crash the whole world?
What obviously happened here is that the watched words were regular watched words and * was the wildcard, and then watched words regular expressions enabled was enabled.
That won’t prevent people entering “normal” wildcard expressions, and then turning on watched words regular expressions enabled, which is what happened here.
I think it just needs an exception handler around the regexp call