react-search-input
react-search-input copied to clipboard
Regex not working in searchTerm value
Regular expression is not working with createFilter method. Below is the code for using regex:
let re = new RegExp(this.state.searchStatus,"g");
newData = data.filter(createFilter(re, STATUS_KEY_TO_FILTERS));
Is it possible to use regex in it?