File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -182,17 +182,17 @@ def search_packages_cli():
182
182
packages_per_page = int_validation (packages_per_page ,10 )
183
183
184
184
conditions = [
185
- {"namespace_name" : {"$regex" : namespace }} if namespace else None ,
186
- {"license" : {"$regex" : license }} if license else None ,
187
- {"name" : {"$regex" : package }} if package else None ,
185
+ {"namespace_name" : {"$regex" : namespace , "$options" : "i" }} if namespace else None ,
186
+ {"license" : {"$regex" : license , "$options" : "i" }} if license else None ,
187
+ {"name" : {"$regex" : package , "$options" : "i" }} if package else None ,
188
188
]
189
189
190
190
mongo_db_query = {
191
191
"$and" : [
192
192
{
193
193
"$or" : [
194
- {"registry_description" : {"$regex" : query }},
195
- {"description" : {"$regex" : query }},
194
+ {"registry_description" : {"$regex" : query , "$options" : "i" }},
195
+ {"description" : {"$regex" : query , "$options" : "i" }},
196
196
]
197
197
},
198
198
{"is_deprecated" : False },
You can’t perform that action at this time.
0 commit comments