fix: feedback updates

This commit is contained in:
yassinedorbozgithub
2024-09-24 08:02:32 +01:00
parent e0508b388e
commit 73d9020455
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ import {
ArgumentMetadata,
Logger,
} from '@nestjs/common';
import _ from 'lodash';
import escapeRegExp from 'lodash/escapeRegExp';
import { TFilterQuery, Types } from 'mongoose';
import {
@@ -37,7 +37,7 @@ export class SearchFilterPipe<T>
}
private getRegexValue(val: string) {
const escapedRegExp = _.escapeRegExp(val);
const escapedRegExp = escapeRegExp(val);
return new RegExp(escapedRegExp, 'i');
}