Skip to content

Commit 8b3be3c

Browse files
committed
fix type in regex variable name
1 parent 3b0692c commit 8b3be3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/component/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export function attemptToParse<T extends Validator<any, any, any>>(
3434
* only says "any string": https://resend.com/docs/dashboard/emails/send-test-emails#using-labels-effectively
3535
* and a full RFC-5322 compliant regex would be way too long.
3636
*/
37-
const RESEND_TEST_EMAIL_REGEXT = /^(delivered|bounced|complained)(\+[a-zA-Z0-9_-]*)?@resend\.dev$/;
37+
const RESEND_TEST_EMAIL_REGEX = /^(delivered|bounced|complained)(\+[a-zA-Z0-9_-]*)?@resend\.dev$/;
3838

3939
/**
4040
* Check if the given e-mail address is a valid test e-mail for Resend.
4141
* @param email
4242
*/
4343
export function isValidResendTestEmail(email: string): boolean {
44-
return RESEND_TEST_EMAIL_REGEXT.test(email);
44+
return RESEND_TEST_EMAIL_REGEX.test(email);
4545
}

0 commit comments

Comments
 (0)