We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2bf69 commit dec159aCopy full SHA for dec159a
src/utils/convert-filter.ts
@@ -16,7 +16,12 @@ export const convertFilter = (filter) => {
16
switch (property.type()) {
17
case 'string':
18
return {
19
- [property.name()]: { $regex: escape(value), $options: 'i' },
+ [property.name()]: { $regex: new RegExp(
20
+ value
21
+ .split(' ')
22
+ .map((word) => '(?=.*\\b' + escape(word) + '\\b)')
23
+ .join('') + '.+'
24
+ ), $options: 'i' },
25
...memo,
26
}
27
case 'date':
0 commit comments