Skip to content

Commit bb93c0c

Browse files
committed
allow caseinsensitivity for regex
1 parent 30e6a9d commit bb93c0c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/graphql/resolvers/Procedure.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ export default {
130130
ProcedureModel.find(
131131
{
132132
$or: [
133-
{ procedureId: { $regex: term } },
134-
{ title: { $regex: term } },
135-
{ abstract: { $regex: term } },
136-
{ tags: { $regex: term } },
137-
{ subjectGroups: { $regex: term } },
133+
{ procedureId: { $regex: term, $options: 'i' } },
134+
{ title: { $regex: term, $options: 'i' } },
135+
{ abstract: { $regex: term, $options: 'i' } },
136+
{ tags: { $regex: term, $options: 'i' } },
137+
{ subjectGroups: { $regex: term, $options: 'i' } },
138138
],
139139
period: 19,
140140
},

0 commit comments

Comments
 (0)