Skip to content

autoEscape not working when one of the searchWords is regex #64

@mkurek

Description

@mkurek

When autoEscape is set to true and (at least) one of the elements in searchWords array is regex, the following exception is raised:

TypeError
str.replace is not a function

Example: https://codesandbox.io/s/20p3zk380n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions