We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab1aa20 commit 7ae2c2eCopy full SHA for 7ae2c2e
1 file changed
shared-code/src/data-access-layer/data-access-objects/data-access-object-mongodb.ts
@@ -649,11 +649,6 @@ export class DataAccessObjectMongo extends BasicDataAccessObject implements IDat
649
}
650
651
652
- /**
653
- * Escapes special regex metacharacters to prevent ReDoS attacks.
654
- * @param str - The string to escape
655
- * @returns The escaped string safe for use in RegExp
656
- */
657
private escapeRegex(str: string): string {
658
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
659
0 commit comments