Skip to content

Case insensitive keywords #22

@subeax

Description

@subeax

Hi!
Thank you for this amazing library!

I think it may be helpful to ignore keywords case.

const options = {
    keywords: ['name', 'town'],
};

const query = "Name:John,Ben,Bill";

might be done by adding new option, like

ignoreCase: true // or something else

and adding condition to line 130:

// We got an advanced search syntax
else {
 key = options.ignoreCase 
          ? term.keyword.toLowerCase() 
          :  term.keyword
...

Thoughts? :)

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