mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: feedback updates
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user