Skip to content

Commit 2aa0ae2

Browse files
authoredMay 8, 2020
updated regex
1 parent 7d8ffe7 commit 2aa0ae2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,10 @@ <h1>Notify Upon Release</h1>
153153
}
154154
function ValidateEmail(mail)
155155
{
156-
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(mail))
156+
if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(mail))
157157
{
158158
document.getElementById('frm1').submit();
159+
159160
return (true)
160161
}
161162
alert("You have entered an invalid email address!");

0 commit comments

Comments
 (0)
Failed to load comments.