Skip to content

Commit f048df9

Browse files
committed
Allow TLDs longer then 4 chars
Addresses #151, #164 and possibly #165
1 parent b78a4ce commit f048df9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

public/js/910-vimbadmin.functions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
*/
222222
function isValidEmail( str )
223223
{
224-
return /^([A-Za-z0-9_\-\+\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test( str );
224+
return /^([A-Za-z0-9_\-\+\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/.test( str );
225225
}
226226

227227

@@ -233,5 +233,5 @@
233233
*/
234234
function isValidEmailDomain( str )
235235
{
236-
return /^([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test( str );
236+
return /^([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/.test( str );
237237
}

0 commit comments

Comments
 (0)