[vhffs-dev] [1441] Fixing a stupid email validation regex |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1441
Author: beuss
Date: 2009-06-16 07:46:02 +0200 (Tue, 16 Jun 2009)
Log Message:
-----------
Fixing a stupid email validation regex
Modified Paths:
--------------
trunk/vhffs-panel/js/commons.js
Modified: trunk/vhffs-panel/js/commons.js
===================================================================
--- trunk/vhffs-panel/js/commons.js 2009-06-15 15:15:59 UTC (rev 1440)
+++ trunk/vhffs-panel/js/commons.js 2009-06-16 05:46:02 UTC (rev 1441)
@@ -77,7 +77,7 @@
* @param value string Value to check.
*/
function validEmail(value) {
- return /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/.test(value);
+ return /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,10})$/.test(value);
}
/**