Open sgtwinters opened 6 years ago
Hey man.. thank you very much for your additional input on this package ;)
I remember, that i implemented some kind of like
filter back then.. It works like this:
/users?name=john*
..
However, i am not sure if it works in "both" ways, like this /users?name=*oh*
Hey @johannesschobel. Yes you did build the like
filtering indeed, it works for 'a string starting with'. My code suggestion posted above adds a filtering rule (matching *string*) so that makes it work both ways :). Would like to review my suggestion (I can PR if you want)?
Thanks again!
Hey man.. haha, maybe i was just to lazy to implement it on my own back then.. ^^ sure, submti a PR, so we can discuss the changes.. That would be great! Thank you very much!
Well, another one @johannesschobel :)
When working with the custom filters you now have the possibility to filter on strings 'starting with' using the String* filter. I have a lot of cases where I need a bit more fuzzy matching, for example matching a part of a string: 'A beautiful song I wrote'.
I would suggest expanding the createEvaluationRule method, listening for *String*, to fit this purpose?
If you like the idea I can send in another PR?