FIX: Replace watched words with wildcards (#24279)

These have been broken since fd07c943ad
because watched words were not correctly transformed to regexps.
This partially reverts the changes.
This commit is contained in:
Bianca Nenciu
2023-11-08 18:51:11 +02:00
committed by GitHub
parent e3f8e9c0fb
commit 277496b6e0
5 changed files with 26 additions and 8 deletions

View File

@@ -5,5 +5,5 @@ export function createWatchedWordRegExp(word) {
export function toWatchedWord(regexp) {
const [[regexpString, options]] = Object.entries(regexp);
return { regexp: regexpString, ...options };
return { ...options, regexp: regexpString };
}