This does not look like a regression, I think it never worked:
This regex does not work with Cyrillic .
Anyone have any ideas on how to rewrite:
censorRegexp = new RegExp("(\\b(?:(hello)|(Здравствуйте))\\b)(?![^\\(]*\\))", "ig");
So it does not use \b
which is unsupported Russian.
(be sure to reply here with a tested regex I have already seen the posts on Stack Overflow)