From eb2b18b8a0e64eded3731bae4204d2925dbef3e7 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 7 Oct 2023 11:05:58 +0200 Subject: infra(eslint): enable no-useless-escape eslint rule (#2434) --- src/modules/internet/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/internet') diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 842ab153..6e8f822f 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -265,7 +265,7 @@ export class InternetModule { let localPart: string = this.userName({ firstName, lastName }); // Strip any special characters from the local part of the email address // This could happen if invalid chars are passed in manually in the firstName/lastName - localPart = localPart.replace(/[^A-Za-z0-9._+\-]+/g, ''); + localPart = localPart.replace(/[^A-Za-z0-9._+-]+/g, ''); // The local part of an email address is limited to 64 chars per RFC 3696 // We limit to 50 chars to be more realistic -- cgit v1.2.3