react-search-input icon indicating copy to clipboard operation
react-search-input copied to clipboard

Regex not working in searchTerm value

Open amit-mn opened this issue 6 years ago • 0 comments

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?

amit-mn avatar May 01 '18 10:05 amit-mn