Roo/form/VTypes.js
authorleon <leon@roojs.com>
Tue, 15 Aug 2023 04:43:18 +0000 (12:43 +0800)
committerleon <leon@roojs.com>
Tue, 15 Aug 2023 04:43:18 +0000 (12:43 +0800)
Roo/form/VTypes.js

index cb5ac4e..ea6bfaf 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 = /^(?:)$/;
+    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;
     var urlWeb = /^((https?):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i;