Skip to content

Commit

Permalink
Allow longer TLDs in email address
Browse files Browse the repository at this point in the history
  • Loading branch information
JensSpanier authored and martinknafve committed Jan 15, 2022
1 parent e684de1 commit fe5577e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hmailserver/source/WebAdmin/include/formcheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function inputCheck(input,type) {

switch(type) {
case 'email':
expression = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
expression = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,}|[0-9]{1,3})(\]?)$/;
break;
case 'text':
expression = "";
Expand Down

0 comments on commit fe5577e

Please sign in to comment.