search-string
search-string copied to clipboard
[Request] toLowerCase condition keywords
Foo:bar === foo:bar in most cases I can think of.
Maybe an option {toLowerCase: true} that defaults to true?
Yeah, or ignoreCase: true that defaults to true (would require a major version bump)
Makes sense, good suggestion. I think change:
static parse(str, transformTextToConditions = []
https://github.com/mixmaxhq/search-string/blob/8eed146/src/searchString.js#L30
To:
static parse(str, options = {
// Default options.
transformTextToConditions: [],
ignoreOperatorCase: true // Ignores case of operator only.
});
... and do the rest of the implementation 🥇
And it would be a major version bump.
What do you think @braco? Want to take a stab at it with a PR?