Skip to content

Commit 80839d6

Browse files
authored
Enhanced email validation regex pattern
Added a comprehensive regex pattern for email validation.
1 parent 77d3c8a commit 80839d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Client-Side Components/Client Scripts/Validate Email Format/ValidateEmailFormat.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
function onSubmit() {
44
var emailField = g_form.getValue('email');
5+
//Comprehensive Email Regex Pattern added Successfully
56
var emailPattern = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
67

78
if (!emailPattern.test(emailField)) {

0 commit comments

Comments
 (0)