my-q-format-response-aws-lambda 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.ts +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -255,7 +255,7 @@ const normaliseMongoFilter = (filter, regexFields, excludeFields) => {
255
255
  excludeParams.includes(f))) {
256
256
  _filter[f] = filter[f];
257
257
  if (regexFields.includes(f))
258
- _filter[f] = { $regex: filter[f], $options: 'i' };
258
+ _filter[f] = { $regex: filter[f], $options: 'ig' };
259
259
  }
260
260
  });
261
261
  return _filter;
package/index.ts CHANGED
@@ -331,7 +331,7 @@ export const normaliseMongoFilter = (filter: TMongoFilterNormalise, regexFields:
331
331
  excludeParams.includes(f))) {
332
332
  _filter[f] = filter[f];
333
333
 
334
- if (regexFields.includes(f)) _filter[f] = { $regex: filter[f], $options: 'i' };
334
+ if (regexFields.includes(f)) _filter[f] = { $regex: filter[f], $options: 'ig' };
335
335
  }
336
336
  });
337
337
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-q-format-response-aws-lambda",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "homepage": "https://github.com/zhukyuri/my-q-format-response-aws-lambda",
5
5
  "description": "my-q-format-response-aws-lambda",
6
6
  "main": "index.js",