Skip to content

Commit b2feac0

Browse files
Update .codesandbox/src/App.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
1 parent e0615fb commit b2feac0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.codesandbox/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ And that has made all the difference.
963963
email = email.trim()
964964

965965
// Check if the email matches the pattern of a typical email
966-
const emailRegex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/
966+
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
967967
if (emailRegex.test(email)) {
968968
return true
969969
}

0 commit comments

Comments
 (0)