Skip to content

Commit 7ae2c2e

Browse files
committed
refactor: remove outdated escapeRegex method documentation
1 parent ab1aa20 commit 7ae2c2e

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

shared-code/src/data-access-layer/data-access-objects/data-access-object-mongodb.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -649,11 +649,6 @@ export class DataAccessObjectMongo extends BasicDataAccessObject implements IDat
649649
}
650650
}
651651

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-
*/
657652
private escapeRegex(str: string): string {
658653
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
659654
}

0 commit comments

Comments
 (0)