Skip to content

Instantly share code, notes, and snippets.

@maximzasorin
Created August 16, 2016 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maximzasorin/f5a7664bec5119e9fa82a024ffe2a4fc to your computer and use it in GitHub Desktop.
Save maximzasorin/f5a7664bec5119e9fa82a024ffe2a4fc to your computer and use it in GitHub Desktop.
Method for jQuery Validate
$.validator.addMethod('emailstrict', function(value, element, param) {
return /^[a-zA-Z0-9_\.\-+]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9]{2,4}$/.test(value);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment