react-data-table-component
react-data-table-component copied to clipboard
Crash when adding a + in the filter box: throws an error `Invalid regular expression`
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 expressionerror.
To Reproduce
Steps to reproduce the behavior:
- Go to https://anothercodeartist.github.io/react-data-table-component/?path=/docs/getting-started-kitchen-sink--kitchen-sink
- Enter a
+in any filter input box - Nothing shows on the page, but the console shows the
Invalid regular expressionerror.