react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

Crash when adding a + in the filter box: throws an error `Invalid regular expression`

Open insaneintenti0n opened this issue 2 years ago • 0 comments

Issue Check list

  • [x] Agree to the Code of Conduct
  • [x] Read the README
  • [x] You are using React 16.8.0+
  • [x] You installed styled-components
  • [x] Include relevant code or preferably a code sandbox

Describe the bug

  • In the filter input box, type + (also (, ), *)
  • The page crashes with an Invalid regular expression error.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://anothercodeartist.github.io/react-data-table-component/?path=/docs/getting-started-kitchen-sink--kitchen-sink
  2. Enter a + in any filter input box
  3. Nothing shows on the page, but the console shows the Invalid regular expression error.

insaneintenti0n avatar Aug 28 '23 19:08 insaneintenti0n