You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem seems to be in highlight-words-core package. Essentially, it is trying to create a regex from ***x but that fails. You can try it in the devTools console
newRegExp('***x')
returns
VM127:1 Uncaught SyntaxError: Invalid regular expression: /***x/: Nothing to repeat
at new RegExp ()
at :1:1
I am unsure how to proceed - applying autoEscape=true escapes the special characters and it seems to fix the issue.
Should we log a warning and return an empty array, as "not matching"?
autoEscape: Escape characters in searchWords which are meaningful in regular expressions.
However, when input ‘***x’, the component crashes.
The text was updated successfully, but these errors were encountered: