Skip to content

RegExp not creating a key #10

@BrandonCopley

Description

@BrandonCopley

If you create a search using the RegExp object, to search by a regular expression the key that gets created doesn't exist because toJSON for RegExp creates a black string. This can be solved by adding this line.

RegExp.prototype.toJSON = RegExp.prototype.toString;

I have done this in my query files, but perhaps this can go in the library as well to help solve why the key doesn't get created if you are searching based on a regular expression.

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