A bug has been reported in the “test” feature of the watched words configuration screen, causing the error “raw bracket is not allowed in regular expression with unicode flag” to be repeatedly printed to the console. This issue is caused by a RegEx being passed from the API to JavaScript that is specific to Ruby, not JavaScript. Arthri provided a detailed report and steps to reproduce the issue.
When using the “test” feature in the watched words configuration screen, the error “raw bracket is not allowed in regular expression with unicode flag” is repeatedly printed to the console.
A few weeks ago that would’ve been fine, but a PR introduced a change that added two more extra parameters. One of these parameters was engine, engine is a parameter which defaults to Ruby, and it is not specified by the aforementioned call. So the returned RegEx is ruby-specific but it is consumed by the JavaScript RegEx engine
Uncaught SyntaxError: raw bracket is not allowed in regular expression with unicode flag
createWatchedWordRegExp watched-words.js:12
matches admin-watched-word-test.js:62
matches admin-watched-word-test.js:61
o handle-descriptor.js:61
get Ember
untrack validator.js:681
Ember 3
o reference.js:175
tag reference.js:136
track validator.js:668
f reference.js:135
<anonymous> runtime.js:2077
tag reference.js:136
track validator.js:668
f reference.js:135
evaluate runtime.js:2089
_execute runtime.js:4306
execute runtime.js:4291
rerender runtime.js:4606
Ember 2
It runtime.js:4139
Ember 3
invoke queue.ts:201
flush queue.ts:98
flush deferred-action-queues.ts:75
_end index.ts:616
end index.ts:298
_runExpiredTimers index.ts:739
setTimeout handler*setTimeout platform.ts:50
_installTimerTimeout index.ts:783
_scheduleExpiredTimers index.ts:764
_runExpiredTimers index.ts:738
watched-words.js:12
Thanks for the detailed report and I’ll see if we can get someone to take a look.