Skip to content

Commit b4b515f

Browse files
committed
regex
1 parent caa070c commit b4b515f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/bouncer/mongo-query.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ const buildQueryDoc = (node, cursor) => {
161161
// single value leaf ops insert op node below given path
162162
// -> { 'param.path': { '$op': value } }
163163
case 'regex':
164+
node.value = new RegExp(node.value)
164165
case 'contains':
165166
case 'exists':
166167
case 'gt':

0 commit comments

Comments
 (0)