Skip to content

Regex not working in searchTerm value #139

Description

@amit-mn

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions