Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit de8a9a5

Browse files
committed
change email verification pattern to allow non-traditional domain names
1 parent f6527ae commit de8a9a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ export const utils = {
671671
}
672672
}
673673

674-
if (!newErrors.email && !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(entries.email)) {
674+
if (!newErrors.email && !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w+)+$/.test(entries.email)) {
675675
newErrors.email = 'No valid email address';
676676
}
677677

0 commit comments

Comments
 (0)