You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It isn't that hard. The search object is, well, a JS object, which means that it can include any valid JS type: string, number, boolean, but also Date (already supports it) and regex. You could do
{name: /john/I}
We already have some partial regex support implemented.
When you set _text, it matches any part of the word.
If the field is a string, it ignores case
If you set _start, it matches the beginning of the word
If you set _end, it matches the end of the word
It actually does the above using RegExp internally, see here
Definitely open for a PR for that. Just needs:
test cases (probably could use the data already in test and more cases)
It would be interesting to have a way of using regular expressions inside of the query statements.
The text was updated successfully, but these errors were encountered: