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

index 29ce83b..46369f2 100644 (file)
@@ -17,6 +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_]+$/;
+    // from pear/Validate::email(...)
     var email = /^(?:("\s*(?:[^"\f\n\r\t\v\b\s]+\s*)+")|([-\w!\#\$%\&\'*+~\/^`|{}]+(?:\.[-\w!\#\$%\&\'*+~\/^`|{}]+)*))@(((\[)?(?:(?:(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:[0-1]?[0-9]?[0-9]))\.){3}(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:[0-1]?[0-9]?[0-9]))))(?(5)\])|((?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)*[a-z0-9](?:[-a-z0-9]*[a-z0-9])?)\.((?:([^- ])[-a-z]*[-a-z])))$/;
     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;