Roo/form/VTypes.js
authorAlan Knowles <alan@roojs.com>
Thu, 16 Jun 2016 09:48:17 +0000 (17:48 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 16 Jun 2016 09:48:17 +0000 (17:48 +0800)
Roo/form/VTypes.js

index 6ac383c..e7140b3 100644 (file)
@@ -17,7 +17,7 @@ Roo.form.VTypes = function(){
     // closure these in so they are only created once.
     var alpha = /^[a-zA-Z_]+$/;
     var alphanum = /^[a-zA-Z0-9_]+$/;
-    var email = /^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,4}$/;
+    var email = /^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,24}$/;
     var url = /(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i;
 
     // All these messages and functions are configurable