Is jsonSelect case sensitive? #38

Open
cyrusbloo opened this Issue Jul 10, 2012 · 2 comments

Projects

None yet

3 participants

@cyrusbloo

From example:

.lang:val("Spanish") works.

.lang:val("spanish") not works.

@jerry02
jerry02 commented Jan 9, 2015

Just found out now, it is case sensitive by default. It has been long time since you came across this, any workaround?? @cyrusbloo

@seromenho

On the operatores var play with the operator '='
If you need contains to be case insensitive maybe you could change the *= operator to

'*=': [ 5, function(lhs, rhs) { return is(lhs, 'string') && is(rhs, 'string') && lhs.toLowerCase().indexOf(rhs.toLowerCase())** !== -1; } ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment