SoftwareBrothers / adminjs-mongoose

Mongoose adapter for AdminJS
MIT License
14 stars 39 forks source link

AND of multiple words in find for string #81

Open tomups opened 2 years ago

tomups commented 2 years ago

Right now, when using a filter for string type, the regex used only works for a single word, or for an exact full phrase match if using multiple words.

I think it's more useful if it does an AND when multiple words are inputted.

I have made a PR for this in case it's considered useful.