We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a86e1 commit cfd9645Copy full SHA for cfd9645
jquery.formvalidator.js
@@ -8,7 +8,7 @@
8
* (c) 2011 Victor Jonsson, Sweden.
9
* Dual licensed under the MIT or GPL Version 2 licenses
10
*
11
-* $version 1.2
+* $version 1.3.beta
12
*/
13
14
(function($) {
@@ -320,9 +320,14 @@ jQueryFormUtils.defaultBorderColor = null;
320
* @return {Boolean}
321
322
jQueryFormUtils.validateEmail = function(email) {
323
- // TODO: is this regexp enough for validating email correct?
324
var emailFilter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
325
- return emailFilter.test(email);
+ if(emailFilter.test(email)) {
+ var parts = email.split('@');
326
+ if(parts.length == 2) {
327
+ return jQueryFormUtils.validateDomain(parts[1]);
328
+ }
329
330
+ return false;
331
};
332
333
/**
0 commit comments